Skip to content

Commit c5c7227

Browse files
committed
fixed unused code warning
In the commit c26e52c one cfg attribute was forgotten. Here we fix this.
1 parent c26e52c commit c5c7227

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/cargo/core/shell.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,13 @@ mod imp {
464464
}
465465
}
466466

467-
#[cfg(any(all(unix, not(any(target_os = "linux", target_os = "macos"))), windows,))]
467+
#[cfg(any(
468+
all(
469+
unix,
470+
not(any(target_os = "linux", target_os = "macos", target_os = "freebsd"))
471+
),
472+
windows,
473+
))]
468474
fn default_err_erase_line(shell: &mut Shell) {
469475
if let Some(max_width) = imp::stderr_width() {
470476
let blank = " ".repeat(max_width);

0 commit comments

Comments
 (0)