Bump itoa to v1 ()

This commit is contained in:
Paolo Barbolini 2022-10-29 15:57:54 +02:00 committed by GitHub
parent 1fff8123eb
commit 81ace856a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

12
docs/Cargo.lock generated
View file

@ -210,12 +210,6 @@ dependencies = [
"hashbrown", "hashbrown",
] ]
[[package]]
name = "itoa"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.3" version = "1.0.3"
@ -253,7 +247,7 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
name = "maud" name = "maud"
version = "0.24.0" version = "0.24.0"
dependencies = [ dependencies = [
"itoa 0.4.8", "itoa",
"maud_macros", "maud_macros",
] ]
@ -506,7 +500,7 @@ version = "1.0.85"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44" checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44"
dependencies = [ dependencies = [
"itoa 1.0.3", "itoa",
"ryu", "ryu",
"serde", "serde",
] ]
@ -588,7 +582,7 @@ version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c3f9a28b618c3a6b9251b6908e9c99e04b9e5c02e6581ccbb67d59c34ef7f9b" checksum = "3c3f9a28b618c3a6b9251b6908e9c99e04b9e5c02e6581ccbb67d59c34ef7f9b"
dependencies = [ dependencies = [
"itoa 1.0.3", "itoa",
"libc", "libc",
"num_threads", "num_threads",
] ]

View file

@ -20,7 +20,7 @@ axum = ["axum-core", "http"]
[dependencies] [dependencies]
maud_macros = { version = "0.24.0", path = "../maud_macros" } maud_macros = { version = "0.24.0", path = "../maud_macros" }
itoa = { version = "0.4.8", default-features = false, features = ["i128"] } itoa = "1"
rocket = { version = ">= 0.3, < 0.5", optional = true } rocket = { version = ">= 0.3, < 0.5", optional = true }
futures-util = { version = "0.3.0", optional = true, default-features = false } futures-util = { version = "0.3.0", optional = true, default-features = false }
actix-web-dep = { package = "actix-web", version = "4", optional = true, default-features = false } actix-web-dep = { package = "actix-web", version = "4", optional = true, default-features = false }

View file

@ -172,7 +172,7 @@ macro_rules! impl_render_with_itoa {
$( $(
impl Render for $ty { impl Render for $ty {
fn render_to(&self, w: &mut String) { fn render_to(&self, w: &mut String) {
let _ = itoa::fmt(w, *self); w.push_str(itoa::Buffer::new().format(*self));
} }
} }
)* )*