Skip to content

Commit 02f3630

Browse files
waywardmonkeysseanmonstar
authored andcommitted
chore(dependencies): update to itoa 1
1 parent f44f726 commit 02f3630

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ http-body = "0.4"
3232
httpdate = "1.0"
3333
httparse = "1.5.1"
3434
h2 = { version = "0.3.9", optional = true }
35-
itoa = "0.4.1"
35+
itoa = "1"
3636
tracing = { version = "0.1", default-features = false, features = ["std"] }
3737
pin-project-lite = "0.2.4"
3838
tower-service = "0.3"

src/proto/h1/role.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ impl Server {
581581
#[inline]
582582
fn encode_headers<W>(
583583
msg: Encode<'_, StatusCode>,
584-
mut dst: &mut Vec<u8>,
584+
dst: &mut Vec<u8>,
585585
mut is_last: bool,
586586
orig_len: usize,
587587
mut wrote_len: bool,
@@ -838,7 +838,7 @@ impl Server {
838838
"content-length: ",
839839
header::CONTENT_LENGTH,
840840
);
841-
let _ = ::itoa::write(&mut dst, len);
841+
extend(dst, ::itoa::Buffer::new().format(len).as_bytes());
842842
extend(dst, b"\r\n");
843843
Encoder::length(len)
844844
}

0 commit comments

Comments
 (0)