Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Jun 3, 2024
1 parent 408edcc commit d01eaa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 3 additions & 6 deletions fuel-vm/benches/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ fn execution(c: &mut Criterion) {
for _ in 0..1000 {
unsafe {
let dummy = interpreter.execute().unwrap();
let ret = std::ptr::read_volatile(&dummy);
ret
std::ptr::read_volatile(&dummy)
};
}
})
Expand Down Expand Up @@ -122,8 +121,7 @@ fn execution(c: &mut Criterion) {
for _ in 0..1000 {
unsafe {
let dummy = interpreter.execute().unwrap();
let ret = std::ptr::read_volatile(&dummy);
ret
std::ptr::read_volatile(&dummy)
};
}
})
Expand Down Expand Up @@ -168,8 +166,7 @@ fn execution(c: &mut Criterion) {
for _ in 0..1000 {
unsafe {
let dummy = interpreter.execute().unwrap();
let ret = std::ptr::read_volatile(&dummy);
ret
std::ptr::read_volatile(&dummy)
};
}
})
Expand Down
2 changes: 2 additions & 0 deletions fuel-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub extern crate alloc;
extern crate core;
#[cfg(feature = "std")]
extern crate libm as _; // Not needed with stdlib
#[cfg(test)]
use criterion as _;

pub mod backtrace;
pub mod call;
Expand Down

0 comments on commit d01eaa7

Please sign in to comment.