Explorar o código

Suppress needless_borrow warnings in verify_authority.rs.

Jing Yang %!s(int64=3) %!d(string=hai) anos
pai
achega
cdcb335ec4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;