Răsfoiți Sursa

fix: change windows-only imports to be windows-only

Apparently this line is required for the Windows build, but leads to warnings on systems that build the eza port with a port of rust 1.77.2, which at this time seems to be limited to the BSDs.

Signed-off-by: Volker Schlecht <47375452+VlkrS@users.noreply.github.com>
GH 1 an în urmă
părinte
comite
e8e0b6da03
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      src/output/mod.rs

+ 1 - 2
src/output/mod.rs

@@ -1,5 +1,4 @@
-#[cfg_attr(target_os = "netbsd", allow(unused_imports))]
-#[cfg_attr(target_os = "freebsd", allow(unused_imports))]
+#[cfg(target_os = "windows")]
 pub use self::cell::{DisplayWidth, TextCell, TextCellContents};
 pub use self::escape::escape;