diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-12-13 18:37:12 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-12-13 18:37:12 +0100 |
commit | 82dc4670bd9b3b93ae949022ecdc58ead79cf905 (patch) | |
tree | 9a3e1ae3e2a20c57b125692d70e6fe01edbe2903 /src/common.rs | |
parent | 0057c0d2ad0c1491ff1ffabc1aa5fea40539b942 (diff) |
thanks clippy
Diffstat (limited to 'src/common.rs')
-rw-r--r-- | src/common.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common.rs b/src/common.rs index 4db888e..71e60b7 100644 --- a/src/common.rs +++ b/src/common.rs @@ -172,10 +172,6 @@ pub struct WalkResult { impl WalkResult { pub fn to_exit_code(&self) -> i32 { - if self.num_errors > 0 { - 1 - } else { - 0 - } + i32::from(self.num_errors > 0) } } |