Skip to content

Commit 6643586

Browse files
committed
handle separate prefixes in clippy args
Signed-off-by: onur-ozkan <[email protected]>
1 parent f5b6257 commit 6643586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/clippy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub(crate) fn get_clippy_rules_in_order(
8282
{
8383
item.iter().for_each(|v| {
8484
let rule = format!("{prefix}{v}");
85-
let position = all_args.iter().position(|t| t == &rule).unwrap();
85+
let position = all_args.iter().position(|t| t == &rule || t == v).unwrap();
8686
result.push((position, rule));
8787
});
8888
}

0 commit comments

Comments
 (0)