File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ impl Cha {
76
76
}
77
77
78
78
#[ inline]
79
- pub fn from_dummy ( url : & Url , ft : Option < FileType > ) -> Self {
79
+ pub fn from_dummy ( _url : & Url , ft : Option < FileType > ) -> Self {
80
80
let mut me = ft. map ( Self :: from_half_ft) . unwrap_or_default ( ) ;
81
81
#[ cfg( unix) ]
82
- if yazi_shared:: url:: Urn :: new ( url ) . is_hidden ( ) {
82
+ if yazi_shared:: url:: Urn :: new ( _url ) . is_hidden ( ) {
83
83
me. kind |= ChaKind :: HIDDEN ;
84
84
}
85
85
me
@@ -182,7 +182,10 @@ impl Cha {
182
182
183
183
#[ inline]
184
184
pub const fn is_hidden ( & self ) -> bool {
185
- win_either ! ( self . kind. contains( ChaKind :: SYSTEM ) , self . kind. contains( ChaKind :: HIDDEN ) )
185
+ win_either ! (
186
+ self . kind. contains( ChaKind :: HIDDEN ) || self . kind. contains( ChaKind :: SYSTEM ) ,
187
+ self . kind. contains( ChaKind :: HIDDEN )
188
+ )
186
189
}
187
190
188
191
#[ inline]
You can’t perform that action at this time.
0 commit comments