Skip to content

Commit

Permalink
tests: ignore unused variables
Browse files Browse the repository at this point in the history
This produced additional warnings in stderr, which added unexpected output and caused a mismatch inside a test and thus panicked.
  • Loading branch information
integer-overflown committed Jun 15, 2024
1 parent 9dd787f commit 960c5f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ mod ffi {
}
}

fn some_function(arg: u8) {}
fn some_function(_arg: u8) {}

struct SomeType;

impl SomeType {
fn some_method(&self, foo: u8) {}
fn some_method(&self, _foo: u8) {}
}

fn main() {}

0 comments on commit 960c5f3

Please sign in to comment.