Ver código fonte

fix(windows): fix unused PermissionsPlus fields

Signed-off-by: Christina Sørensen <ces@fem.gg>
Christina Sørensen 11 meses atrás
pai
commit
5500c4e3aa
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/fs/fields.rs

+ 2 - 0
src/fs/fields.rs

@@ -106,11 +106,13 @@ pub struct Attributes {
 /// little more compressed.
 #[derive(Copy, Clone)]
 pub struct PermissionsPlus {
+    #[allow(unused)]
     pub file_type: Type,
     #[cfg(unix)]
     pub permissions: Permissions,
     #[cfg(windows)]
     pub attributes: Attributes,
+    #[allow(unused)]
     pub xattrs: bool,
 }