Skip to content

Commit 20f6012

Browse files
committed
Format
1 parent 120f431 commit 20f6012

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

rewatch/src/config.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,7 @@ impl Config {
709709
"reanalyze",
710710
];
711711

712-
let top_level = field
713-
.split(|c| ['.', '['].contains(&c))
714-
.next()
715-
.unwrap_or(field);
712+
let top_level = field.split(|c| ['.', '['].contains(&c)).next().unwrap_or(field);
716713

717714
UNSUPPORTED_TOP_LEVEL_FIELDS.contains(&top_level)
718715
}
@@ -1111,10 +1108,7 @@ pub mod tests {
11111108
"#;
11121109

11131110
let config = Config::new_from_json_string(json).expect("a valid json string");
1114-
assert_eq!(
1115-
config.get_unsupported_fields(),
1116-
vec!["ignored-dirs".to_string()]
1117-
);
1111+
assert_eq!(config.get_unsupported_fields(), vec!["ignored-dirs".to_string()]);
11181112
assert!(config.get_unknown_fields().is_empty());
11191113
}
11201114

0 commit comments

Comments
 (0)