From fcd896ce2030cadb9c7025296b855bf8119d47b2 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Wed, 14 Jun 2023 15:37:16 +0300 Subject: [PATCH] benchmarks: fix a clippy issue. Signed-off-by: Ismo Puustinen --- .../benches/webassembly-benchmarks.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benches/containerd-shim-benchmarks/benches/webassembly-benchmarks.rs b/benches/containerd-shim-benchmarks/benches/webassembly-benchmarks.rs index 484f0864f..7079b442e 100644 --- a/benches/containerd-shim-benchmarks/benches/webassembly-benchmarks.rs +++ b/benches/containerd-shim-benchmarks/benches/webassembly-benchmarks.rs @@ -117,10 +117,9 @@ fn run_wasmtime_test_with_spec( wasi.start()?; - let w = wasi.clone(); let (tx, rx) = channel(); let waiter = Wait::new(tx); - w.wait(&waiter).unwrap(); + wasi.wait(&waiter).unwrap(); let res = match rx.recv_timeout(Duration::from_secs(60)) { Ok(res) => Ok(res),