Skip to content

Commit

Permalink
Address 'unused variable' warnings when 'span' feature is off. (gfx-r…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy authored Sep 27, 2021
1 parent 004a12e commit 3e992d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ impl<T: Eq + hash::Hash> UniqueArena<T> {
debug_assert!(self.set.len() == self.span_info.len());
}

#[cfg(not(feature = "span"))]
let _ = (span, added);

Handle::from_usize(index)
}

Expand Down

0 comments on commit 3e992d8

Please sign in to comment.