diff options
| author | Jack O'Connor <[email protected]> | 2023-02-04 10:35:57 -0800 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2023-02-04 10:35:59 -0800 |
| commit | 64747d48ffe9d1fbf4b71e94cabeb8a211461081 (patch) | |
| tree | fd09fddcf861438b28ef9cb154c755af7dd2f3c3 /b3sum | |
| parent | 697ca13550d70d858e81213876b91cf76c2e7e44 (diff) | |
do another saturating_add for consistency
This one is less security/correctness-critical than the other one I just
added, but I might as well be consistent.
Diffstat (limited to 'b3sum')
| -rw-r--r-- | b3sum/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/b3sum/src/main.rs b/b3sum/src/main.rs index e3dbabf..0af88bb 100644 --- a/b3sum/src/main.rs +++ b/b3sum/src/main.rs @@ -578,7 +578,7 @@ fn main() -> Result<()> { // errors we'll still return non-zero at the end. let result = hash_one_input(path, &args); if let Err(e) = result { - files_failed += 1; + files_failed = files_failed.saturating_add(1); eprintln!("{}: {}: {}", NAME, path.to_string_lossy(), e); } } |
