Skip to content

Commit

Permalink
remove unused unit vars ()
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov committed Dec 12, 2024
1 parent 0d9386d commit d99859a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/commands/connection_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ pub trait ConnectionCommands<'a> {
/// # #[cfg_attr(feature = "async-std-runtime", async_std::main)]
/// # async fn main() -> Result<()> {
/// # let client = Client::connect("127.0.0.1:6379").await?;
/// let _: () = client.client_no_touch(true).await?;
/// let _: () = client.client_no_touch(false).await?;
/// client.client_no_touch(true).await?;
/// client.client_no_touch(false).await?;
/// # Ok(())
/// }
/// ```
Expand Down
8 changes: 4 additions & 4 deletions src/tests/connection_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ async fn client_list() -> Result<()> {
async fn client_no_evict() -> Result<()> {
let client = get_test_client().await?;

let _: () = client.client_no_evict(true).await?;
let _: () = client.client_no_evict(false).await?;
client.client_no_evict(true).await?;
client.client_no_evict(false).await?;

Ok(())
}
Expand All @@ -149,8 +149,8 @@ async fn client_no_evict() -> Result<()> {
async fn client_no_touch() -> Result<()> {
let client = get_test_client().await?;

let _: () = client.client_no_touch(true).await?;
let _: () = client.client_no_touch(false).await?;
client.client_no_touch(true).await?;
client.client_no_touch(false).await?;

Ok(())
}
Expand Down

0 comments on commit d99859a

Please sign in to comment.