Skip to content

chacha20: clippy config - #526

Merged
tarcieri merged 1 commit into
masterfrom
chacha20/clippy-config
Feb 5, 2026
Merged

chacha20: clippy config#526
tarcieri merged 1 commit into
masterfrom
chacha20/clippy-config

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Uses the same clippy config as was added to the cipher crate in RustCrypto/traits#2279

Since chacha20 defines lints.rust.unexpected_cfgs we have to define this at the crate-level rather than the workspace level, since if you use the latter it must hold all of the lint config.

Fixes some violations, adds TODO and "needs triage" allow()s for others.

Comment threadchacha20/src/rng.rs
///
/// The arrays should be in little endian order.
#[derive(Clone, Copy, Debug)]
pub struct StreamId([u32; Self::LEN]);

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Sidebar: this struct definition seems like a rather roundabout way of saying StreamId(u32, u32)

@tarcieri
tarcieriforce-pushed the chacha20/clippy-config branch 2 times, most recently from f603293 to 0c10bf4CompareFebruary 5, 2026 03:09
Uses the same clippy config as was added to the `cipher` crate in
RustCrypto/traits#2279
Since `chacha20` defines `lints.rust.unexpected_cfgs` we have to define
this at the crate-level rather than the workspace level, since if you
use the latter it must hold all of the lint config.
Fixes some violations, adds TODO and "needs triage" `allow()`s for
others.
@tarcieri
tarcieriforce-pushed the chacha20/clippy-config branch from 0c10bf4 to 96def56CompareFebruary 5, 2026 03:15
@tarcieri
tarcieri merged commit cc09e8f into masterFeb 5, 2026
28 checks passed
@tarcieri
tarcieri deleted the chacha20/clippy-config branch February 5, 2026 03:19
Sign up for freeto 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

@tarcieri