Przeglądaj źródła

fix(ci): underscored unused windows variables

xempt 2 lat temu
rodzic
commit
e3faed3521
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      src/fs/file.rs
  2. 1 1
      src/fs/filter.rs

+ 1 - 1
src/fs/file.rs

@@ -581,7 +581,7 @@ impl<'dir> File<'dir> {
     }
 
     #[cfg(windows)]
-    pub fn recursive_size(&self, toplevel: bool) -> f::Size {
+    pub fn recursive_size(&self, _toplevel: bool) -> f::Size {
         if self.is_directory() {
             f::Size::None
         } else {

+ 1 - 1
src/fs/filter.rs

@@ -305,7 +305,7 @@ impl SortField {
 
     /// Windows safe version of the above
     #[cfg(windows)]
-    pub fn compare_files(self, a: &File<'_>, b: &File<'_>, recursive: bool) -> Ordering {
+    pub fn compare_files(self, a: &File<'_>, b: &File<'_>, _recursive: bool) -> Ordering {
         use self::SortCase::{ABCabc, AaBbCc};
 
         #[rustfmt::skip]