From c5c7227e42d545f08a35d73696e7b5a08a163a75 Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Wed, 7 Aug 2019 21:40:41 +0200 Subject: [PATCH] fixed unused code warning In the commit c26e52c6d6a16a75bfcbbbae054f8f057ea02bd4 one cfg attribute was forgotten. Here we fix this. --- src/cargo/core/shell.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index 860d35d107a..c0c9b13907a 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -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);