Browse Source

Remove clippy allows that are no longer necessary.

Jing Yang 3 years ago
parent
commit
1a43d98384
2 changed files with 1 additions and 6 deletions
  1. 0 2
      src/verify_authority.rs
  2. 1 4
      tests/persist_tests.rs

+ 0 - 2
src/verify_authority.rs

@@ -404,8 +404,6 @@ impl<Command: 'static + Send> Raft<Command> {
 
 
 #[cfg(test)]
 #[cfg(test)]
 mod tests {
 mod tests {
-    #![allow(clippy::needless_borrow)]
-
     use super::*;
     use super::*;
 
 
     const PEER_SIZE: usize = 5;
     const PEER_SIZE: usize = 5;

+ 1 - 4
tests/persist_tests.rs

@@ -1,5 +1,4 @@
 #![allow(clippy::identity_op)]
 #![allow(clippy::identity_op)]
-#![allow(clippy::uninlined_format_args)]
 
 
 use std::sync::atomic::AtomicBool;
 use std::sync::atomic::AtomicBool;
 use std::sync::atomic::Ordering;
 use std::sync::atomic::Ordering;
@@ -414,9 +413,7 @@ fn internal_churn(
     for cmd in all_cmds {
     for cmd in all_cmds {
         assert!(
         assert!(
             consented.contains(&cmd),
             consented.contains(&cmd),
-            "Cmd {} not found in {:?}",
-            cmd,
-            consented
+            "Cmd {cmd} not found in {consented:?}"
         );
         );
     }
     }