diff options
Diffstat (limited to 'grep/examples/simplegrep.rs')
-rw-r--r-- | grep/examples/simplegrep.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/grep/examples/simplegrep.rs b/grep/examples/simplegrep.rs index 37b6a0c4..749cff26 100644 --- a/grep/examples/simplegrep.rs +++ b/grep/examples/simplegrep.rs @@ -40,13 +40,11 @@ fn search(pattern: &str, paths: &[OsString]) -> Result<(), Box<dyn Error>> { .build(); let mut printer = StandardBuilder::new() .color_specs(ColorSpecs::default_with_color()) - .build(cli::stdout( - if cli::is_tty_stdout() { - ColorChoice::Auto - } else { - ColorChoice::Never - } - )); + .build(cli::stdout(if cli::is_tty_stdout() { + ColorChoice::Auto + } else { + ColorChoice::Never + })); for path in paths { for result in WalkDir::new(path) { |