Skip to content

Commit 5ce999c

Browse files
committed
clippy
1 parent 0f1bea1 commit 5ce999c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/day05.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ fn parse_input(input: &str) -> Vec<&str> {
55
fn decode(s: &str) -> u16 {
66
let (mut a, mut b) = (0, (1 << s.len()) - 1);
77
for ch in s.trim().chars() {
8+
#[allow(clippy::manual_div_ceil)]
89
let delta = (b - a + 1) / 2;
910
match ch {
1011
'F' | 'L' => b -= delta,

0 commit comments

Comments
 (0)