Skip to content

Commit 7cad2f7

Browse files
committed
review: style.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 694da16 commit 7cad2f7

File tree

2 files changed

+2
-4
lines changed
  • examples

2 files changed

+2
-4
lines changed

examples/grpc_auth_random/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +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)]
72-
#[allow(clippy::manual_is_multiple_of)]
71+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
7372
if status_code % 2 == 0 {
7473
info!("Access granted.");
7574
self.resume_http_request();

examples/http_auth_random/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +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)]
54-
#[allow(clippy::manual_is_multiple_of)]
53+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
5554
if !body.is_empty() && body[0] % 2 == 0 {
5655
info!("Access granted.");
5756
self.resume_http_request();

0 commit comments

Comments
 (0)