Skip to content

chore(mm): use inline-const array init to satisfy large_const_arrays#131

Open
kernalix7 wants to merge 1 commit into
mainfrom
chore/mm-inline-const-array
Open

chore(mm): use inline-const array init to satisfy large_const_arrays#131
kernalix7 wants to merge 1 commit into
mainfrom
chore/mm-inline-const-array

Conversation

@kernalix7

Copy link
Copy Markdown
Owner

Newer nightly clippy flags 'large array defined as const' on const NONE: Option<BigStruct> = None; [NONE; N] in mempool/page_pool/slub::new(). Switch to [const { None }; N] (idiomatic, used elsewhere in-tree) — removes the named const, no behaviour change. Unblocks workspace clippy CI.

A newer nightly clippy flags 'large array defined as const' on the
'const NONE: Option<BigStruct> = None; [NONE; N]' idiom in
mempool/page_pool/slub ::new(). Switch to the inline-const form
'[const { None }; N]' (already used elsewhere in the tree), which
removes the named const entirely and is the idiomatic non-Copy array
initializer. No behaviour change.
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