From 3971dcfe10b94e901a224b5328a9dafd1e2ecc08 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Jul 2019 17:11:37 -0400 Subject: Use system rustfmt instead of fixed binary (#2701) --- cli/shell.rs | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'cli/shell.rs') diff --git a/cli/shell.rs b/cli/shell.rs index 9a66efe71..aaf29b4e0 100644 --- a/cli/shell.rs +++ b/cli/shell.rs @@ -342,18 +342,18 @@ impl ShellOut { None => write!(stream, " ")?, } } /* - ShellOut::Write(ref mut w) => { - if justified { - write!(w, "{:>12}", status)?; - } else { - write!(w, "{}", status)?; - } - match message { - Some(message) => writeln!(w, " {}", message)?, - None => write!(w, " ")?, + ShellOut::Write(ref mut w) => { + if justified { + write!(w, "{:>12}", status)?; + } else { + write!(w, "{}", status)?; + } + match message { + Some(message) => writeln!(w, " {}", message)?, + None => write!(w, " ")?, + } } - } - */ + */ } Ok(()) } @@ -479,12 +479,10 @@ mod imp { } } -#[cfg( - any( - all(unix, not(any(target_os = "linux", target_os = "macos"))), - windows - ) -)] +#[cfg(any( + all(unix, not(any(target_os = "linux", target_os = "macos"))), + windows +))] fn default_err_erase_line(shell: &mut Shell) { if let Some(max_width) = imp::stderr_width() { let blank = " ".repeat(max_width); -- cgit v1.2.3