Explorar el Código

Suppress needless_borrow warnings in verify_authority.rs.

Jing Yang hace 3 años
padre
commit
cdcb335ec4
Se han modificado 1 ficheros con 2 adiciones y 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;