Skip to content

Commit ff85257

Browse files
committed
Fix all clippy lints since Rust 1.90
1 parent 975dab2 commit ff85257

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rspirv/grammar/syntax.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl CoreInstructionTable {
115115
pub fn get(opcode: spirv::Op) -> &'static Instruction<'static> {
116116
INSTRUCTION_TABLE
117117
.iter()
118-
.find(|inst| (inst.opcode == opcode))
118+
.find(|inst| inst.opcode == opcode)
119119
.expect("internal error")
120120
}
121121

@@ -145,7 +145,7 @@ impl GlslStd450InstructionTable {
145145
pub fn get(opcode: spirv::GLOp) -> &'static ExtendedInstruction<'static> {
146146
GLSL_STD_450_INSTRUCTION_TABLE
147147
.iter()
148-
.find(|inst| (inst.opcode == opcode as spirv::Word))
148+
.find(|inst| inst.opcode == opcode as spirv::Word)
149149
.expect("internal error")
150150
}
151151

@@ -176,7 +176,7 @@ impl OpenCLStd100InstructionTable {
176176
pub fn get(opcode: spirv::CLOp) -> &'static ExtendedInstruction<'static> {
177177
OPENCL_STD_100_INSTRUCTION_TABLE
178178
.iter()
179-
.find(|inst| (inst.opcode == opcode as spirv::Word))
179+
.find(|inst| inst.opcode == opcode as spirv::Word)
180180
.expect("internal error")
181181
}
182182

rspirv/lift/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<T, L: Borrow<Token<T>>> LiftStorage<T, L> {
4141
&mut self,
4242
id: spirv::Word,
4343
value: T,
44-
) -> (Token<T>, VacantEntry<spirv::Word, L>) {
44+
) -> (Token<T>, VacantEntry<'_, spirv::Word, L>) {
4545
let token = self.values.append(value);
4646
match self.lookup.entry(id) {
4747
Entry::Occupied(_) => panic!("Id {:?} is already used", id),

0 commit comments

Comments
 (0)