diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-31 14:31:19 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-31 14:31:19 -0400 |
commit | 28a798aa09de5bef46e0a323e95df3abb017d37e (patch) | |
tree | 25ffb30c9f2be444f1673c590468a220b23d417a /src/util | |
parent | 75ac859aaff0bdb40eb51e2aad12de6da4674e9d (diff) |
remove unnecessary into
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/unix.rs b/src/util/unix.rs index 8066957..8553e6a 100644 --- a/src/util/unix.rs +++ b/src/util/unix.rs @@ -35,7 +35,7 @@ pub fn mode_to_string(mode: u32) -> String { let mode_shifted = mode >> 9; for (val, ch) in LIBC_FILE_VALS.iter() { - if mode_shifted == (*val).into() { + if mode_shifted == *val { mode_str.push(*ch); break; } |