diff --git a/src/bin/p01.rs b/src/bin/p01.rs index d1ab649..3cf10c3 100644 --- a/src/bin/p01.rs +++ b/src/bin/p01.rs @@ -19,7 +19,7 @@ fn main() { println!( "new cals: {}, max so far: {}", cur_cals, - heap.peek().expect("Can't peek from heap!") + heap.peek().unwrap() ); cur_cals = 0; }