File tree 2 files changed +5
-10
lines changed 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ impl SizeFilter {
37
37
38
38
let multiplier = match & captures. get ( 3 ) . map_or ( "b" , |m| m. as_str ( ) ) . to_lowercase ( ) [ ..] {
39
39
v if v. starts_with ( "ki" ) => KIBI ,
40
- v if v. starts_with ( "k" ) => KILO ,
40
+ v if v. starts_with ( 'k' ) => KILO ,
41
41
v if v. starts_with ( "mi" ) => MEBI ,
42
- v if v. starts_with ( "m" ) => MEGA ,
42
+ v if v. starts_with ( 'm' ) => MEGA ,
43
43
v if v. starts_with ( "gi" ) => GIBI ,
44
- v if v. starts_with ( "g" ) => GIGA ,
44
+ v if v. starts_with ( 'g' ) => GIGA ,
45
45
v if v. starts_with ( "ti" ) => TEBI ,
46
- v if v. starts_with ( "t" ) => TERA ,
46
+ v if v. starts_with ( 't' ) => TERA ,
47
47
"b" => 1 ,
48
48
_ => return None ,
49
49
} ;
Original file line number Diff line number Diff line change @@ -328,14 +328,9 @@ fn spawn_senders(
328
328
. map ( |m| fshelper:: is_executable ( & m) )
329
329
. unwrap_or ( false ) )
330
330
|| ( file_types. empty_only && !fshelper:: is_empty ( & entry) )
331
+ || !( entry_type. is_file ( ) || entry_type. is_dir ( ) || entry_type. is_symlink ( ) )
331
332
{
332
333
return ignore:: WalkState :: Continue ;
333
- } else if !( entry_type. is_file ( )
334
- || entry_type. is_dir ( )
335
- || entry_type. is_symlink ( ) )
336
- {
337
- // This is probably a block device, char device, fifo or socket. Skip it.
338
- return ignore:: WalkState :: Continue ;
339
334
}
340
335
} else {
341
336
return ignore:: WalkState :: Continue ;
You can’t perform that action at this time.
0 commit comments