Эх сурвалжийг харах

Suppress needless_borrow warnings in verify_authority.rs.

Jing Yang 3 жил өмнө
parent
commit
cdcb335ec4

+ 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;