Skip to content

Commit

Permalink
remove unneeded sval_fmt dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Dec 20, 2023
1 parent f95b05b commit 059395f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions nested/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ categories = ["encoding", "no-std"]
features = ["std"]

[features]
default = ["alloc"]
std = ["alloc", "sval/std", "sval_buffer/std"]
alloc = ["sval/alloc", "sval_buffer/alloc"]
no_debug_assertions = []
Expand Down
4 changes: 0 additions & 4 deletions serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ version = "2.10.2"
path = "../nested"
default-features = false

[dependencies.sval_fmt]
version = "2.10.2"
path = "../fmt"

[dependencies.serde]
version = "1"
default-features = false
2 changes: 1 addition & 1 deletion serde/src/to_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<'sval, S: sval::Stream<'sval>> serde::Serializer for Stream<S> {
where
T: fmt::Display,
{
sval_fmt::stream_display(&mut self.stream, value)
sval::stream_display(&mut self.stream, value)
.map_err(|_| Error::custom("failed to stream a string"))
}

Expand Down

0 comments on commit 059395f

Please sign in to comment.