Skip to content

Commit 3340ee5

Browse files
committed
style: address outstanding clippy lint from Day 8
1 parent 10502c4 commit 3340ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solutions/day08.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::data::load;
22
use lazy_static::lazy_static;
3-
use num::Integer;
3+
use num::integer::div_floor;
44
use regex::Regex;
55
use std::collections::hash_map::Entry;
66
use std::collections::{HashMap, HashSet};
@@ -197,7 +197,7 @@ fn make_state_map(
197197
fn lcm(a: Vec<u64>) -> u64 {
198198
let mut lcm = a[0];
199199
for i in a.iter() {
200-
lcm = (lcm * *i).div_floor(&num::integer::gcd(lcm, *i));
200+
lcm = div_floor(lcm * *i, num::integer::gcd(lcm, *i));
201201
}
202202
lcm
203203
}

0 commit comments

Comments
 (0)