Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Dec 8, 2024
1 parent e023c5b commit 4cc2f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/slowkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pub struct SlowKey<'a> {
balloon_hash: BalloonHash<'a>,
}

impl<'a> SlowKey<'a> {
impl SlowKey<'_> {
pub const SALT_SIZE: usize = 16;
pub const DEFAULT_SALT: [u8; SlowKey::SALT_SIZE] = [0; SlowKey::SALT_SIZE];

Expand Down
2 changes: 1 addition & 1 deletion src/utils/algorithms/balloon_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct BalloonHash<'a> {
balloon: Balloon<'a, Sha512>,
}

impl<'a> BalloonHash<'a> {
impl BalloonHash<'_> {
pub const HASH: &'static str = "SHA512";

pub fn new(length: usize, opts: &BalloonHashOptions) -> Self {
Expand Down

0 comments on commit 4cc2f90

Please sign in to comment.