Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed May 26, 2024
1 parent 4a357dc commit 0a2eabe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions viz-core/src/middleware/csrf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ pub fn verify(secret: &[u8], raw_token: String) -> bool {
}

/// Retures masked token
#[allow(clippy::needless_collect)]
fn mask(secret: &[u8], mut otp: Vec<u8>) -> Vec<u8> {
otp.extend::<Vec<u8>>(
secret
Expand Down
1 change: 1 addition & 0 deletions viz-core/src/types/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::{
Error, FromRequest, IntoResponse, Request, RequestExt, Response, StatusCode, ThisError,
};

#[allow(clippy::redundant_pub_crate)]
pub(crate) use de::PathDeserializer;

/// Extracts params from the path of a URL.
Expand Down
1 change: 1 addition & 0 deletions viz-core/src/types/params/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ macro_rules! parse_single_value {
};
}

#[allow(clippy::redundant_pub_crate)]
pub(crate) struct PathDeserializer<'de> {
path: &'de [(String, String)],
}
Expand Down

0 comments on commit 0a2eabe

Please sign in to comment.