Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit committed Sep 11, 2024
1 parent 6b36279 commit 64ce597
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions redis/benches/bench_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions redis/benches/bench_cluster_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(())
})
Expand Down
2 changes: 1 addition & 1 deletion redis/tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 64ce597

Please sign in to comment.