Skip to content

chacha20: clippy config#526

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

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

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 5, 2026

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.

///
/// The arrays should be in little endian order.
#[derive(Clone, Copy, Debug)]
pub struct StreamId([u32; Self::LEN]);
Copy link
Member Author

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 tarcieri force-pushed the chacha20/clippy-config branch 2 times, most recently from f603293 to 0c10bf4 Compare February 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 tarcieri force-pushed the chacha20/clippy-config branch from 0c10bf4 to 96def56 Compare February 5, 2026 03:15
@tarcieri tarcieri merged commit cc09e8f into master Feb 5, 2026
28 checks passed
@tarcieri tarcieri deleted the chacha20/clippy-config branch February 5, 2026 03:19
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