Skip to content

scrypt: enable and fix workspace-level lints#892

Merged
tarcieri merged 1 commit into
masterfrom
scrypt/workspace-level-lints
Apr 21, 2026
Merged

scrypt: enable and fix workspace-level lints#892
tarcieri merged 1 commit into
masterfrom
scrypt/workspace-level-lints

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Enables and fixes the workspace-level lints added in #884, which is a standard configuration we're using across repositories

@tarcieri tarcieri requested a review from newpavlov April 21, 2026 18:10
Comment thread scrypt/src/block_mix.rs
Comment on lines 19 to -21
mod soft;
pub(crate) use soft::scrypt_block_mix;

pub(crate) fn shuffle_in(_input: &mut [u8]) {}
pub(crate) fn shuffle_out(_input: &mut [u8]) {}

#[cfg(test)]
use soft as soft_test;
}
}

#[cfg(test)]
#[path = "block_mix/soft.rs"]
mod soft_test;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach was importing it twice

Comment thread scrypt/src/params.rs
Comment on lines 65 to -100
@@ -96,8 +102,8 @@ impl Params {

Ok(Params {
log_n,
r: r as u32,
p: p as u32,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously it was being cast from u32 to usize and back to u32. While there are checks that should work, it seems more straightforward not to cast it back and forth when we're given and want a u32.

Enables and fixes the workspace-level lints added in #884, which is a
standard configuration we're using across repositories
@tarcieri tarcieri force-pushed the scrypt/workspace-level-lints branch from 08efcb3 to d71b52f Compare April 21, 2026 19:26
@tarcieri tarcieri merged commit 90b92e4 into master Apr 21, 2026
16 checks passed
@tarcieri tarcieri deleted the scrypt/workspace-level-lints branch April 21, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant