Skip to content

Commit

Permalink
Change benchmark function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Dec 13, 2024
1 parent bced42f commit 0fb2960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arbitrator/tools/stylus_benchmark/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn run(compiled_module: Vec<u8>) -> (Duration, Ink) {
(elapsed, ink)
}

pub fn benchmark(wat_path: &PathBuf) -> eyre::Result<()> {
pub fn benchmark(wat_path: PathBuf) -> eyre::Result<()> {
println!("Benchmarking {:?}", wat_path);

let wat = match std::fs::read(wat_path) {
Expand Down
2 changes: 1 addition & 1 deletion arbitrator/tools/stylus_benchmark/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() -> eyre::Result<()> {
let args = Cli::parse();
match args.command {
Commands::Benchmark { wat_path } => {
return benchmark::benchmark(&wat_path);
return benchmark::benchmark(wat_path);
}
Commands::GenerateWats { out_path } => {
return generate_wats::generate_wats(out_path);
Expand Down

0 comments on commit 0fb2960

Please sign in to comment.