Skip to content

Commit

Permalink
Fix unused_variables warning
Browse files Browse the repository at this point in the history
  • Loading branch information
frengor committed Nov 6, 2023
1 parent 254960c commit f848f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::mem;
use crate::tests::{assert_state_not_collecting, reset_state};
use crate::{collect_cycles, Cc, Context, Finalize, Trace};

fn register_panicking<T: Trace>(cc: &Cc<T>) {
fn register_panicking<T: Trace>(#[allow(unused_variables)] cc: &Cc<T>) { // The unused_variables warning is triggered when not running on Miri
#[cfg(miri)]
extern "Rust" {
/// From Miri documentation:<br>
Expand Down

0 comments on commit f848f15

Please sign in to comment.