Skip to content

Commit 04c1529

Browse files
committed
cargo fmt
1 parent d901981 commit 04c1529

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ matrix:
1414
- env: TARGET=thumbv7m-none-eabi
1515
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1616

17-
#- env: TARGET=rustfmt
18-
# if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
17+
- env: TARGET=rustfmt
18+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1919

2020
before_install: set -e
2121

src/de/mod.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,14 @@ mod tests {
878878
assert_eq!(crate::from_str(r#"[10, -20]"#), Ok(Xy(10, -20)));
879879

880880
// wrong number of args
881-
assert_eq!(crate::from_str::<Xy>(r#"[10]"#), Err(crate::de::Error::CustomError));
882-
assert_eq!(crate::from_str::<Xy>(r#"[10, 20, 30]"#), Err(crate::de::Error::TrailingCharacters));
881+
assert_eq!(
882+
crate::from_str::<Xy>(r#"[10]"#),
883+
Err(crate::de::Error::CustomError)
884+
);
885+
assert_eq!(
886+
crate::from_str::<Xy>(r#"[10, 20, 30]"#),
887+
Err(crate::de::Error::TrailingCharacters)
888+
);
883889
}
884890

885891
#[test]
@@ -907,7 +913,9 @@ mod tests {
907913
);
908914

909915
assert_eq!(
910-
crate::from_str(r#"{ "temperature": 20, "source": { "station": "dock", "sensors": ["front", "back"] } }"#),
916+
crate::from_str(
917+
r#"{ "temperature": 20, "source": { "station": "dock", "sensors": ["front", "back"] } }"#
918+
),
911919
Ok(Temperature { temperature: 20 })
912920
);
913921

0 commit comments

Comments
 (0)