Skip to content

Commit 2f37578

Browse files
committed
Remove redundant brackets
1 parent 45e92aa commit 2f37578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

day02a/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn main() {
44
include_bytes!("../input.txt")
55
.split(|b| *b == b'\n')
66
.map(|l| ((l[0] - b'A') as i16, (l[2] - b'X') as i16,))
7-
.map(|(a, b)| 1 + b + 3 * ((1 + b - a).rem_euclid(3)))
7+
.map(|(a, b)| 1 + b + 3 * (1 + b - a).rem_euclid(3))
88
.sum::<i16>(),
99
);
1010
}

0 commit comments

Comments
 (0)