소스 검색

Remove clippy allows that are no longer necessary.

Jing Yang 3 년 전
부모
커밋
1a43d98384
2개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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)]
 mod tests {
-    #![allow(clippy::needless_borrow)]
-
     use super::*;
 
     const PEER_SIZE: usize = 5;

+ 1 - 4
tests/persist_tests.rs

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