diff --git a/arbitrator/tools/stylus_benchmark/src/benchmark.rs b/arbitrator/tools/stylus_benchmark/src/benchmark.rs index e97028a347..1c3ab363c6 100644 --- a/arbitrator/tools/stylus_benchmark/src/benchmark.rs +++ b/arbitrator/tools/stylus_benchmark/src/benchmark.rs @@ -77,7 +77,7 @@ fn run(compiled_module: Vec) -> (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) { diff --git a/arbitrator/tools/stylus_benchmark/src/main.rs b/arbitrator/tools/stylus_benchmark/src/main.rs index ed6566ac90..9df77f25c8 100644 --- a/arbitrator/tools/stylus_benchmark/src/main.rs +++ b/arbitrator/tools/stylus_benchmark/src/main.rs @@ -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);