chore(dependencies): update to itoa 1
This commit is contained in:
committed by
Sean McArthur
parent
f44f7265e0
commit
02f3630af6
@@ -32,7 +32,7 @@ http-body = "0.4"
|
|||||||
httpdate = "1.0"
|
httpdate = "1.0"
|
||||||
httparse = "1.5.1"
|
httparse = "1.5.1"
|
||||||
h2 = { version = "0.3.9", optional = true }
|
h2 = { version = "0.3.9", optional = true }
|
||||||
itoa = "0.4.1"
|
itoa = "1"
|
||||||
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
||||||
pin-project-lite = "0.2.4"
|
pin-project-lite = "0.2.4"
|
||||||
tower-service = "0.3"
|
tower-service = "0.3"
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ impl Server {
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn encode_headers<W>(
|
fn encode_headers<W>(
|
||||||
msg: Encode<'_, StatusCode>,
|
msg: Encode<'_, StatusCode>,
|
||||||
mut dst: &mut Vec<u8>,
|
dst: &mut Vec<u8>,
|
||||||
mut is_last: bool,
|
mut is_last: bool,
|
||||||
orig_len: usize,
|
orig_len: usize,
|
||||||
mut wrote_len: bool,
|
mut wrote_len: bool,
|
||||||
@@ -838,7 +838,7 @@ impl Server {
|
|||||||
"content-length: ",
|
"content-length: ",
|
||||||
header::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");
|
extend(dst, b"\r\n");
|
||||||
Encoder::length(len)
|
Encoder::length(len)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user