Skip to content

Commit

Permalink
Fixup clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusGrass committed Oct 5, 2023
1 parent 15a91d1 commit 6ea88e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tiny-bench/src/output/analysis/criterion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use std::time::Duration;
/// }
/// ```
#[allow(unsafe_code)]
#[allow(clippy::mem_forget)]
pub fn black_box<T>(dummy: T) -> T {
unsafe {
let ret = std::ptr::read_volatile(&dummy);
Expand Down

0 comments on commit 6ea88e6

Please sign in to comment.