Ver Fonte

fix: prefix unused binding name with underscore

hehelego há 2 anos atrás
pai
commit
c28e5b72d4
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {
             terminal_size::terminal_size_using_handle(unsafe {
                 GetStdHandle(STD_OUTPUT_HANDLE) as RawHandle
                 GetStdHandle(STD_OUTPUT_HANDLE) as RawHandle
             })
             })
-            .map(|(w, h)| w.0 as _)
+            .map(|(w, _h)| w.0 as _)
         };
         };
 
 
         #[rustfmt::skip]
         #[rustfmt::skip]