1
0
Fork 0

Remove unnecessary expect

This commit is contained in:
Vivianne 2022-11-30 23:12:02 -08:00
parent 7b5d96c21e
commit 7bbba7414a

View file

@ -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;
}