chore(dependencies): update to itoa 1

This commit is contained in:
Bruce Mitchener
2021-12-14 14:24:24 +07:00
committed by Sean McArthur
parent f44f7265e0
commit 02f3630af6
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ http-body = "0.4"
httpdate = "1.0"
httparse = "1.5.1"
h2 = { version = "0.3.9", optional = true }
itoa = "0.4.1"
itoa = "1"
tracing = { version = "0.1", default-features = false, features = ["std"] }
pin-project-lite = "0.2.4"
tower-service = "0.3"

View File

@@ -581,7 +581,7 @@ impl Server {
#[inline]
fn encode_headers<W>(
msg: Encode<'_, StatusCode>,
mut dst: &mut Vec<u8>,
dst: &mut Vec<u8>,
mut is_last: bool,
orig_len: usize,
mut wrote_len: bool,
@@ -838,7 +838,7 @@ impl Server {
"content-length: ",
header::CONTENT_LENGTH,
);
let _ = ::itoa::write(&mut dst, len);
extend(dst, ::itoa::Buffer::new().format(len).as_bytes());
extend(dst, b"\r\n");
Encoder::length(len)
}