summaryrefslogtreecommitdiffstats
path: root/src/commands/set_mode.rs
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2019-02-15 19:13:42 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2019-02-15 19:37:29 -0800
commit8b04fec104cd20b86ff98f4da225bb866a407f8c (patch)
treef9b58da3f2a107d136a66c61d08dead883965864 /src/commands/set_mode.rs
parent055ac602929af367da2af77999e73de6bf8fd344 (diff)
Fix most clippy lints
Diffstat (limited to 'src/commands/set_mode.rs')
-rw-r--r--src/commands/set_mode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/set_mode.rs b/src/commands/set_mode.rs
index b0cf073..061b5c3 100644
--- a/src/commands/set_mode.rs
+++ b/src/commands/set_mode.rs
@@ -53,14 +53,14 @@ impl SetMode {
let mut mode: libc::mode_t = 0;
for (i, ch) in s.chars().enumerate() {
if ch == LIBC_PERMISSION_VALS[i].1 {
- mode = mode | LIBC_PERMISSION_VALS[i].0;
+ mode |= LIBC_PERMISSION_VALS[i].0;
}
}
unix::set_mode(entry.path.as_path(), mode);
entry.metadata.permissions.set_mode(mode + (1 << 15));
return true;
}
- return false;
+ false
}
}