Browse Source

Suppress needless_borrow warnings in verify_authority.rs.

Jing Yang 3 years ago
parent
commit
cdcb335ec4
1 changed files with 2 additions and 0 deletions
  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;