Run rustfmt

This commit is contained in:
Alex Crichton 2019-08-28 07:58:15 -07:00
parent 16d3273c8c
commit d8309379ed
2 changed files with 11 additions and 12 deletions

View file

@ -328,11 +328,11 @@ fn serde_derive_deserialize_errors() {
fn error_handles_crlf() { fn error_handles_crlf() {
bad!( bad!(
"\r\n\ "\r\n\
[t1]\r\n\ [t1]\r\n\
[t2]\r\n\ [t2]\r\n\
a = 1\r\n\ a = 1\r\n\
a = 2\r\n\ a = 2\r\n\
", ",
toml::Value, toml::Value,
"duplicate key: `a` for key `t2` at line 3 column 1" "duplicate key: `a` for key `t2` at line 3 column 1"
); );
@ -340,13 +340,12 @@ fn error_handles_crlf() {
// Should be the same as above. // Should be the same as above.
bad!( bad!(
"\n\ "\n\
[t1]\n\ [t1]\n\
[t2]\n\ [t2]\n\
a = 1\n\ a = 1\n\
a = 2\n\ a = 2\n\
", ",
toml::Value, toml::Value,
"duplicate key: `a` for key `t2` at line 3 column 1" "duplicate key: `a` for key `t2` at line 3 column 1"
); );
} }

View file

@ -59,7 +59,7 @@ macro_rules! float_inf_tests {
assert_eq!( assert_eq!(
s, s,
"\ "\
sf1 = inf sf1 = inf
sf2 = inf sf2 = inf
sf3 = -inf sf3 = -inf
sf4 = nan sf4 = nan