Skip to content

Commit

Permalink
Use new itoa
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Saveau committed Nov 20, 2024
1 parent 27fd91a commit 181ac3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.63"

[dependencies]
bitflags = { version = "2.4.0", default-features = false }
itoa = { version = "1.0.1", default-features = false, optional = true }
itoa = { version = "1.0.12", default-features = false, optional = true }

# Special dependencies used in rustc-dep-of-std mode.
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
Expand Down
3 changes: 2 additions & 1 deletion src/path/dec_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ use {core::fmt, std::ffi::OsStr, std::path::Path};
#[derive(Clone)]
pub struct DecInt {
// Enough to hold an {u,i}64 and NUL terminator.
buf: [MaybeUninit<u8>; "-9223372036854775808\0".len()],
buf: [MaybeUninit<u8>; u64::MAX_STR_LEN + 1],
len: usize,
}
const _: () = assert!(u64::MAX_STR_LEN == i64::MAX_STR_LEN);

impl DecInt {
/// Construct a new path component from an integer.
Expand Down

0 comments on commit 181ac3b

Please sign in to comment.