Skip to content

Commit 94216a1

Browse files
clippy fixes.
1 parent f33e980 commit 94216a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/rustc_codegen_spirv/src/linker/duplicates.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn gather_annotations(annotations: &[Instruction]) -> FxHashMap<Word, Vec<u32>>
104104
.collect()
105105
}
106106

107-
/// Returns a map from an ID to its debug name (given by OpName).
107+
/// Returns a map from an ID to its debug name (given by `OpName`).
108108
fn gather_names(debug_names: &[Instruction]) -> FxHashMap<Word, String> {
109109
debug_names
110110
.iter()
@@ -188,7 +188,7 @@ fn rewrite_inst_with_rules(inst: &mut Instruction, rules: &FxHashMap<u32, u32>)
188188
}
189189
}
190190

191-
/// Remove duplicate OpName and OpMemberName instructions from module debug names section.
191+
/// Remove duplicate `OpName` and `OpMemberName` instructions from module debug names section.
192192
fn remove_duplicate_debug_names(debug_names: &mut Vec<Instruction>) {
193193
let mut name_ids = FxHashSet::default();
194194
let mut member_name_ids = FxHashSet::default();
@@ -618,7 +618,7 @@ pub fn remove_duplicate_builtin_input_variables(module: &mut Module) {
618618

619619
entry.operands.retain(|operand| {
620620
!matches!(operand,
621-
Operand::IdRef(id) if duplicate_vars.contains_key(&id))
621+
Operand::IdRef(id) if duplicate_vars.contains_key(id))
622622
});
623623
}
624624

0 commit comments

Comments
 (0)