Skip to content

Commit

Permalink
Making heap peek fallible
Browse files Browse the repository at this point in the history
  • Loading branch information
bellwether-softworks authored Aug 13, 2024
1 parent 837291f commit c02a93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/epa/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl EPA {

let mut niter = 0;
let mut max_dist = Real::max_value();
let mut best_face_id = *self.heap.peek().unwrap();
let mut best_face_id = *self.heap.peek()?;
let mut old_dist = 0.0;

/*
Expand Down

0 comments on commit c02a93b

Please sign in to comment.