Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 18, 2024
1 parent 951f869 commit 4a09542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl Mesh {
let mut paths: Vec<Path> = vec![];
// Limit search to avoid an infinite loop.
for _ in 0..self.layers.iter().map(|l| l.polygons.len()).sum::<usize>() * 10 {
let potential_path = match search_instance.next() {
let _potential_path = match search_instance.next() {
#[cfg(not(feature = "detailed-layers"))]
InstanceStep::Found(path) => return Some(path),
#[cfg(feature = "detailed-layers")]
Expand All @@ -289,7 +289,7 @@ impl Mesh {
InstanceStep::Continue => None,
};
#[cfg(feature = "detailed-layers")]
if let Some(path) = potential_path {
if let Some(path) = _potential_path {
paths.push(path);
}
}
Expand Down

0 comments on commit 4a09542

Please sign in to comment.