Skip to content

Commit

Permalink
fixed unused code warning
Browse files Browse the repository at this point in the history
In the commit c26e52c one cfg attribute
was forgotten. Here we fix this.
  • Loading branch information
xanderio committed Aug 7, 2019
1 parent c26e52c commit c5c7227
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cargo/core/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,13 @@ 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", target_os = "freebsd"))
),
windows,
))]
fn default_err_erase_line(shell: &mut Shell) {
if let Some(max_width) = imp::stderr_width() {
let blank = " ".repeat(max_width);
Expand Down

0 comments on commit c5c7227

Please sign in to comment.