Skip to content

Commit 15917e9

Browse files
committed
scripts: Pass clippy tests by allowing many arguments
Signed-off-by: Changho Choi <[email protected]>
1 parent 8cb70b8 commit 15917e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/vmsa/src/page_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl<A: Address, E: Entry, const N: usize> PageTableMethods<A, E, N> for PageTab
254254
} as *mut PageTable<A, E, NUM_ENTRIES>;
255255

256256
if subtable as usize != 0 {
257-
let subtable_ptr = subtable as *mut PageTable<A, E, NUM_ENTRIES>;
257+
let subtable_ptr = subtable;
258258
unsafe {
259259
let arr: [E; NUM_ENTRIES] = core::array::from_fn(|_| E::new());
260260
(*subtable_ptr).entries = arr;

scripts/clippy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ cargo clippy --lib -p islet_rmm -- \
1919
-A clippy::redundant_pattern_matching \
2020
-A clippy::type_complexity \
2121
-A clippy::upper-case-acronyms \
22+
-A clippy::too_many_arguments \
2223
--deny "warnings"

0 commit comments

Comments
 (0)