diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-07-31 17:11:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 17:11:37 -0400 |
commit | 3971dcfe10b94e901a224b5328a9dafd1e2ecc08 (patch) | |
tree | e347644a90094774e56e9315119c31594ca60796 /cli/shell.rs | |
parent | b3541c38f5672ffb4a29d66dca19d88b9ecae478 (diff) |
Use system rustfmt instead of fixed binary (#2701)
Diffstat (limited to 'cli/shell.rs')
-rw-r--r-- | cli/shell.rs | 32 |
1 files changed, 15 insertions, 17 deletions
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); |