Skip to content

Commit

Permalink
handle separate prefixes in clippy args
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Nov 10, 2024
1 parent f5b6257 commit 6643586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/clippy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub(crate) fn get_clippy_rules_in_order(
{
item.iter().for_each(|v| {
let rule = format!("{prefix}{v}");
let position = all_args.iter().position(|t| t == &rule).unwrap();
let position = all_args.iter().position(|t| t == &rule || t == v).unwrap();
result.push((position, rule));
});
}
Expand Down

0 comments on commit 6643586

Please sign in to comment.