Skip to content

Commit 51585b4

Browse files
committed
use zmij, remove ryu
1 parent 34cc0ee commit 51585b4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ aws-smithy-json = "0.61"
1010
aws-smithy-types = "1"
1111
clap = { version = "4", features = ["derive"] }
1212
itoa = "1"
13-
ryu = "1"
13+
zmij = "1"
1414

1515
[target.'cfg(target_family = "unix")'.dependencies]
1616
nix = { version = "0.30", default-features = false, features = ["signal"] }

src/path_value_writer/json_pointer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ impl<W: Write> PathValueWriter for Writer<'_, W> {
5151
self.writer.write_all(b.format(i).as_bytes())?;
5252
}
5353
aws_smithy_types::Number::Float(f) => {
54-
let mut b = ryu::Buffer::new();
55-
self.writer.write_all(b.format(f).as_bytes())?;
54+
let mut b = zmij::Buffer::new();
55+
self.writer.write_all(b.format_finite(f).as_bytes())?;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)