Skip to content

Commit b9c32a7

Browse files
committed
update style
1 parent 1e1b94e commit b9c32a7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Core {
102102
let mut exit_code = ExitCode::OK;
103103
let mut meta_list = Vec::with_capacity(paths.len());
104104
let depth = match self.flags.layout {
105-
Layout::Tree { .. } => self.flags.recursion.depth,
105+
Layout::Tree => self.flags.recursion.depth,
106106
_ if self.flags.recursion.enabled => self.flags.recursion.depth,
107107
_ => 1,
108108
};

src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ mod tests {
751751
.lines()
752752
.nth(i)
753753
.unwrap()
754-
.split(|c| c == 'K' || c == 'B')
754+
.split(['K', 'B'])
755755
.next()
756756
.unwrap()
757757
.len()

src/meta/access_control.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mod test {
102102

103103
#[test]
104104
fn test_smack_only_indicator() {
105-
let access_control = AccessControl::from_data(false, &[], &[b'a']);
105+
let access_control = AccessControl::from_data(false, &[], b"a");
106106

107107
assert_eq!(
108108
String::from(".").with(Color::Cyan),
@@ -112,7 +112,7 @@ mod test {
112112

113113
#[test]
114114
fn test_acl_and_selinux_indicator() {
115-
let access_control = AccessControl::from_data(true, &[b'a'], &[]);
115+
let access_control = AccessControl::from_data(true, b"a", &[]);
116116

117117
assert_eq!(
118118
String::from("+").with(Color::DarkCyan),
@@ -122,7 +122,7 @@ mod test {
122122

123123
#[test]
124124
fn test_selinux_context() {
125-
let access_control = AccessControl::from_data(false, &[b'a'], &[]);
125+
let access_control = AccessControl::from_data(false, b"a", &[]);
126126

127127
assert_eq!(
128128
String::from("a").with(Color::Cyan),
@@ -132,7 +132,7 @@ mod test {
132132

133133
#[test]
134134
fn test_selinux_and_smack_context() {
135-
let access_control = AccessControl::from_data(false, &[b'a'], &[b'b']);
135+
let access_control = AccessControl::from_data(false, b"a", b"b");
136136

137137
assert_eq!(
138138
String::from("a+b").with(Color::Cyan),

0 commit comments

Comments
 (0)