mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Upgrade itoa to version 1
This commit is contained in:
parent
391c55a19e
commit
9ba72ce3fd
4 changed files with 5 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -97,7 +97,7 @@ dependencies = [
|
|||
"futures-lite",
|
||||
"futures-rustls",
|
||||
"glommio 0.6.0 (git+https://github.com/DataDog/glommio.git?rev=4e6b14772da2f4325271fbcf12d24cf91ed466e5)",
|
||||
"itoa 0.4.8",
|
||||
"itoa 1.0.1",
|
||||
"log",
|
||||
"memchr",
|
||||
"mimalloc",
|
||||
|
|
@ -146,7 +146,7 @@ dependencies = [
|
|||
"hashbrown 0.11.2",
|
||||
"hex",
|
||||
"httparse",
|
||||
"itoa 0.4.8",
|
||||
"itoa 1.0.1",
|
||||
"log",
|
||||
"memchr",
|
||||
"quickcheck",
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ either = "1"
|
|||
futures-lite = "1"
|
||||
futures-rustls = "0.22"
|
||||
glommio = { git = "https://github.com/DataDog/glommio.git", rev = "4e6b14772da2f4325271fbcf12d24cf91ed466e5" }
|
||||
itoa = "0.4"
|
||||
itoa = "1"
|
||||
log = "0.4"
|
||||
mimalloc = { version = "0.1", default-features = false }
|
||||
memchr = "2"
|
||||
|
|
|
|||
|
|
@ -416,7 +416,7 @@ impl Connection {
|
|||
let mut response_bytes = Vec::with_capacity(39 + content_len_num_digits + body.len());
|
||||
|
||||
response_bytes.extend_from_slice(b"HTTP/1.1 200 OK\r\nContent-Length: ");
|
||||
::itoa::write(&mut response_bytes, content_len)?;
|
||||
response_bytes.extend_from_slice(::itoa::Buffer::new().format(content_len).as_bytes());
|
||||
response_bytes.extend_from_slice(b"\r\n\r\n");
|
||||
response_bytes.append(&mut body);
|
||||
response_bytes.extend_from_slice(b"\r\n");
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ anyhow = "1"
|
|||
hashbrown = "0.11"
|
||||
hex = { version = "0.4", default-features = false }
|
||||
httparse = "1"
|
||||
itoa = "0.4"
|
||||
itoa = "1"
|
||||
log = "0.4"
|
||||
memchr = "2"
|
||||
rand = { version = "0.8", features = ["small_rng"] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue