diff --git a/src/lib.rs b/src/lib.rs index 76ff48c..caad160 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -279,7 +279,8 @@ impl LsColors { } else if file_type.is_dir() { let mode = crate::fs::mode(metadata); - if self.has_color_for(Indicator::StickyAndOtherWritable) && mode & 0o1002 == 0o1002 { + if self.has_color_for(Indicator::StickyAndOtherWritable) && mode & 0o1002 == 0o1002 + { Indicator::StickyAndOtherWritable } else if self.has_color_for(Indicator::OtherWritable) && mode & 0o0002 != 0 { Indicator::OtherWritable