From 5e721e1bae82c7a09f57d4da4a173eba120bd9f6 Mon Sep 17 00:00:00 2001 From: Mu001999 Date: Mon, 7 Mar 2022 10:45:25 +0800 Subject: [PATCH] Fix clippy --- courses/dss/labrpc/src/network.rs | 2 +- courses/dss/raft/src/kvraft/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/courses/dss/labrpc/src/network.rs b/courses/dss/labrpc/src/network.rs index d6a6dca6d..78b4f8a4a 100644 --- a/courses/dss/labrpc/src/network.rs +++ b/courses/dss/labrpc/src/network.rs @@ -350,7 +350,7 @@ async fn server_dead( ) { loop { Delay::new(interval).await; - if net.is_server_dead(&client_name, &server_name, server_id) { + if net.is_server_dead(client_name, server_name, server_id) { debug!("{:?} is dead", server_name); return; } diff --git a/courses/dss/raft/src/kvraft/tests.rs b/courses/dss/raft/src/kvraft/tests.rs index 61109fbbb..88e709bfe 100644 --- a/courses/dss/raft/src/kvraft/tests.rs +++ b/courses/dss/raft/src/kvraft/tests.rs @@ -263,7 +263,7 @@ fn generic_test( j += 1; } else { debug!("{}: client new get {:?}", cli, key); - let v = get(&cfg1, &myck, &key); + let v = get(&cfg1, myck, &key); if v != last { panic!( "get wrong value, key {:?}, wanted:\n{:?}\n, got\n{:?}",