Skip to content

Commit

Permalink
bump sval to 0.5.2 for fmt fixes
Browse files Browse the repository at this point in the history
run fmt
  • Loading branch information
KodrAus committed Jun 4, 2020
1 parent 43d69c1 commit c89a4a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ kv_unstable_sval = ["kv_unstable", "sval/fmt"]
[dependencies]
cfg-if = "0.1.2"
serde = { version = "1.0", optional = true, default-features = false }
sval = { version = "0.5", optional = true, default-features = false }
sval = { version = "0.5.2", optional = true, default-features = false }

[dev-dependencies]
serde_test = "1.0"
sval = { version = "0.5", features = ["test"] }
sval = { version = "0.5.2", features = ["test"] }
5 changes: 1 addition & 4 deletions src/kv/value/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ mod tests {
format_args!("a {}", "value").to_value().to_string(),
"a value"
);
assert_eq!(
"a loong string".to_value().to_string(),
"a loong string"
);
assert_eq!("a loong string".to_value().to_string(), "a loong string");
assert_eq!(Some(true).to_value().to_string(), "true");
assert_eq!(().to_value().to_string(), "None");
assert_eq!(Option::None::<bool>.to_value().to_string(), "None");
Expand Down
5 changes: 1 addition & 4 deletions src/kv/value/internal/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ mod tests {
format!("{}", "a string".to_value()),
);

assert_eq!(
format!("{:04}", 42u64),
format!("{:04}", 42u64.to_value()),
);
assert_eq!(format!("{:04}", 42u64), format!("{:04}", 42u64.to_value()),);
}
}

0 comments on commit c89a4a1

Please sign in to comment.