Skip to content

Commit 7851b38

Browse files
authored
Merge branch 'main' into drop-bytes
2 parents 75c856f + 50229a2 commit 7851b38

File tree

2 files changed

+2
-0
lines changed
  • examples

2 files changed

+2
-0
lines changed

examples/grpc_auth_random/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ impl HttpContext for GrpcAuthRandom {
6868

6969
impl Context for GrpcAuthRandom {
7070
fn on_grpc_call_response(&mut self, _: u32, status_code: u32, _: usize) {
71+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
7172
if status_code % 2 == 0 {
7273
info!("Access granted.");
7374
self.resume_http_request();

examples/http_auth_random/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl HttpContext for HttpAuthRandom {
5050
impl Context for HttpAuthRandom {
5151
fn on_http_call_response(&mut self, _: u32, _: usize, body_size: usize, _: usize) {
5252
if let Some(body) = self.get_http_call_response_body(0, body_size) {
53+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
5354
if !body.is_empty() && body[0] % 2 == 0 {
5455
info!("Access granted.");
5556
self.resume_http_request();

0 commit comments

Comments
 (0)