diff options
author | king6cong <king6cong@gmail.com> | 2020-12-26 19:36:44 +0800 |
---|---|---|
committer | king6cong <king6cong@gmail.com> | 2020-12-26 19:36:44 +0800 |
commit | d688ccfb7c80ea3162d1856f926820ade4bbeea0 (patch) | |
tree | 4a87f47cd1bd9a0596a66fd5767caabe5220ed50 /src/util | |
parent | 5d91e4bcd50d21b40d41ab50341771154cd26594 (diff) |
fix mismatched types
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 c4385aa..c211f6f 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 { + if mode_shifted == (*val).into() { mode_str.push(*ch); break; } |