From df4400209afd7703baa6fa5524468f8459eb48bf Mon Sep 17 00:00:00 2001 From: dana Date: Sat, 6 Apr 2019 06:59:36 -0500 Subject: [PATCH] ripgrep: remove extra new-line after Clap output PR #1222 --- src/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/args.rs b/src/args.rs index c9f2405b..6d9549ed 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1654,12 +1654,12 @@ where I: IntoIterator, if err.use_stderr() { return Err(err.into()); } - // Explicitly ignore any error returned by writeln!. The most likely error + // Explicitly ignore any error returned by write!. The most likely error // at this point is a broken pipe error, in which case, we want to ignore // it and exit quietly. // // (This is the point of this helper function. clap's functionality for // doing this will panic on a broken pipe error.) - let _ = writeln!(io::stdout(), "{}", err); + let _ = write!(io::stdout(), "{}", err); process::exit(0); }