Parcourir la source

Suppress needless_borrow warnings in verify_authority.rs.

Jing Yang il y a 3 ans
Parent
commit
cdcb335ec4
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/verify_authority.rs

+ 2 - 0
src/verify_authority.rs

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