Sfoglia il codice sorgente

fix: prefix unused binding name with underscore

hehelego 2 anni fa
parent
commit
c28e5b72d4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/output/mod.rs

+ 1 - 1
src/output/mod.rs

@@ -63,7 +63,7 @@ impl TerminalWidth {
             terminal_size::terminal_size_using_handle(unsafe {
                 GetStdHandle(STD_OUTPUT_HANDLE) as RawHandle
             })
-            .map(|(w, h)| w.0 as _)
+            .map(|(w, _h)| w.0 as _)
         };
 
         #[rustfmt::skip]