Skip to content

Commit fc39046

Browse files
committed
split long lines which cause formatting errors
1 parent 720ee50 commit fc39046

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/config/config_type.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ macro_rules! create_config {
248248

249249
#[allow(unreachable_pub)]
250250
pub fn is_hidden_option(name: &str) -> bool {
251-
const HIDE_OPTIONS: [&str; 6] =
252-
["verbose", "verbose_diff", "file_lines", "width_heuristics", "recursive", "print_misformatted_file_names"];
251+
const HIDE_OPTIONS: [&str; 6] = [
252+
"verbose", "verbose_diff", "file_lines", "width_heuristics",
253+
"recursive", "print_misformatted_file_names",
254+
];
253255
HIDE_OPTIONS.contains(&name)
254256
}
255257

src/config/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,9 @@ mod test {
513513
Ok(_) => panic!("Expected configuration error"),
514514
Err(msg) => assert_eq!(
515515
msg,
516-
"Error: Conflicting config options `skip_children` and `recursive` are both enabled. `skip_children` has been deprecated and should be removed from your config.",
516+
"Error: Conflicting config options `skip_children` and `recursive` \
517+
are both enabled. `skip_children` has been deprecated and should be \
518+
removed from your config.",
517519
),
518520
}
519521
}

0 commit comments

Comments
 (0)