Skip to content

Commit eeedbb6

Browse files
committed
chore: solve another lint
1 parent 5b82a14 commit eeedbb6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interface/handlers/main_window.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ fn handle_counter_switch(app: &mut App, increment: bool) {
130130
// safe to unwrap because the element type is HOTP
131131
let counter = element.counter.unwrap();
132132
element.counter = if increment {
133-
#[allow(clippy::manual_saturating_arithmetic)]
134-
Some(counter.checked_add(1).unwrap_or(u64::MAX))
133+
Some(counter.saturating_add(1))
135134
} else {
136135
Some(counter.saturating_sub(1))
137136
};

0 commit comments

Comments
 (0)