Skip to content

Commit

Permalink
silence clippy false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Sep 9, 2023
1 parent 919e97e commit f96f418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bvh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ impl<D, V: BoundingVolume> Bvh<D, V> {

/// Remove a bounding volume
///
/// It requires the id returned when the volume was inserted
#[allow(clippy::single_match_else)] // false-positive
/// It requires the id that was returned by the insert method
#[allow(clippy::single_match_else, clippy::missing_panics_doc)] // false-positives
pub fn remove(&mut self, VolumeHandle(node_index): VolumeHandle) {
match self.arena.remove(node_index).and_then(|n| n.parent) {
Some(parent_index) => {
Expand Down

0 comments on commit f96f418

Please sign in to comment.