diff --git a/examples/grpc_auth_random/src/lib.rs b/examples/grpc_auth_random/src/lib.rs index d1c589e9..54d227b2 100644 --- a/examples/grpc_auth_random/src/lib.rs +++ b/examples/grpc_auth_random/src/lib.rs @@ -68,6 +68,7 @@ impl HttpContext for GrpcAuthRandom { impl Context for GrpcAuthRandom { fn on_grpc_call_response(&mut self, _: u32, status_code: u32, _: usize) { + #[allow(unknown_lints, clippy::manual_is_multiple_of)] if status_code % 2 == 0 { info!("Access granted."); self.resume_http_request(); diff --git a/examples/http_auth_random/src/lib.rs b/examples/http_auth_random/src/lib.rs index b666ecef..4e539713 100644 --- a/examples/http_auth_random/src/lib.rs +++ b/examples/http_auth_random/src/lib.rs @@ -50,6 +50,7 @@ impl HttpContext for HttpAuthRandom { impl Context for HttpAuthRandom { fn on_http_call_response(&mut self, _: u32, _: usize, body_size: usize, _: usize) { if let Some(body) = self.get_http_call_response_body(0, body_size) { + #[allow(unknown_lints, clippy::manual_is_multiple_of)] if !body.is_empty() && body[0] % 2 == 0 { info!("Access granted."); self.resume_http_request();