From 8e61990bab35b926c1af124a35d984e366ef6119 Mon Sep 17 00:00:00 2001 From: barshaul Date: Wed, 11 Sep 2024 14:12:10 +0000 Subject: [PATCH] Fixed linter --- redis/benches/bench_basic.rs | 7 +++++-- redis/benches/bench_cluster_async.rs | 11 +++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/redis/benches/bench_basic.rs b/redis/benches/bench_basic.rs index 638417b64..4ee8d43e4 100644 --- a/redis/benches/bench_basic.rs +++ b/redis/benches/bench_basic.rs @@ -31,10 +31,13 @@ fn bench_simple_getsetdel_async(b: &mut Bencher) { redis::cmd("SET") .arg(key) .arg(42) - .query_async(&mut con) + .query_async::<_, Option>(&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::<_, Option>(&mut con) + .await?; Ok::<_, RedisError>(()) }) .unwrap() diff --git a/redis/benches/bench_cluster_async.rs b/redis/benches/bench_cluster_async.rs index 347908f9e..feed2846e 100644 --- a/redis/benches/bench_cluster_async.rs +++ b/redis/benches/bench_cluster_async.rs @@ -21,9 +21,16 @@ 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::<_, Option>(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::<_, Option>(con) + .await?; Ok::<_, RedisError>(()) })