diff --git a/redis/benches/bench_basic.rs b/redis/benches/bench_basic.rs index 638417b64..356f74217 100644 --- a/redis/benches/bench_basic.rs +++ b/redis/benches/bench_basic.rs @@ -28,13 +28,13 @@ fn bench_simple_getsetdel_async(b: &mut Bencher) { runtime .block_on(async { let key = "test_key"; - redis::cmd("SET") + () = redis::cmd("SET") .arg(key) .arg(42) .query_async(&mut con) .await?; let _: isize = redis::cmd("GET").arg(key).query_async(&mut con).await?; - redis::cmd("DEL").arg(key).query_async(&mut con).await?; + () = redis::cmd("DEL").arg(key).query_async(&mut con).await?; Ok::<_, RedisError>(()) }) .unwrap() diff --git a/redis/benches/bench_cluster_async.rs b/redis/benches/bench_cluster_async.rs index 347908f9e..28c3b83c8 100644 --- a/redis/benches/bench_cluster_async.rs +++ b/redis/benches/bench_cluster_async.rs @@ -21,9 +21,9 @@ fn bench_cluster_async( runtime .block_on(async { let key = "test_key"; - redis::cmd("SET").arg(key).arg(42).query_async(con).await?; + () = redis::cmd("SET").arg(key).arg(42).query_async(con).await?; let _: isize = redis::cmd("GET").arg(key).query_async(con).await?; - redis::cmd("DEL").arg(key).query_async(con).await?; + () = redis::cmd("DEL").arg(key).query_async(con).await?; Ok::<_, RedisError>(()) }) diff --git a/redis/tests/support/mod.rs b/redis/tests/support/mod.rs index 8169ee94b..335cd045d 100644 --- a/redis/tests/support/mod.rs +++ b/redis/tests/support/mod.rs @@ -653,7 +653,7 @@ pub fn build_keys_and_certs_for_tls(tempdir: &TempDir) -> TlsFilePaths { .arg("genrsa") .arg("-out") .arg(name) - .arg(&format!("{size}")) + .arg(format!("{size}")) .stdout(process::Stdio::null()) .stderr(process::Stdio::null()) .spawn()