Skip to content

Commit

Permalink
Fix new clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit authored and barshaul committed Feb 10, 2024
1 parent 8f35f5a commit 44674b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmarks/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async fn get_connection(args: &Args) -> Client {
}

async fn single_benchmark_task(
connections: &Vec<Client>,
connections: &[Client],
counter: Arc<AtomicUsize>,
number_of_operations: usize,
number_of_concurrent_tasks: usize,
Expand Down
4 changes: 2 additions & 2 deletions glide-core/tests/utilities/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl Drop for RedisServer {
}
}

fn encode_iter<W>(values: &Vec<Value>, writer: &mut W, prefix: &str) -> io::Result<()>
fn encode_iter<W>(values: &[Value], writer: &mut W, prefix: &str) -> io::Result<()>
where
W: io::Write,
{
Expand All @@ -271,7 +271,7 @@ where
Ok(())
}

fn encode_map<W>(values: &Vec<(Value, Value)>, writer: &mut W, prefix: &str) -> io::Result<()>
fn encode_map<W>(values: &[(Value, Value)], writer: &mut W, prefix: &str) -> io::Result<()>
where
W: io::Write,
{
Expand Down

0 comments on commit 44674b7

Please sign in to comment.