Fix latest clippy warnings

This commit is contained in:
marc0246 2024-06-20 20:27:18 +02:00
parent b9f3e89300
commit 582a2466f3
No known key found for this signature in database
GPG Key ID: 689CB88C1090C684

View File

@ -31,10 +31,10 @@ pub struct SpirvInstruction {
pub opcode: u16, pub opcode: u16,
#[serde(default)] #[serde(default)]
pub operands: Vec<SpirvOperand>, pub operands: Vec<SpirvOperand>,
#[serde(default)] // #[serde(default)]
pub capabilities: Vec<String>, // pub capabilities: Vec<String>,
#[serde(default)] // #[serde(default)]
pub extensions: Vec<String>, // pub extensions: Vec<String>,
} }
#[derive(Clone, Debug, Deserialize)] #[derive(Clone, Debug, Deserialize)]
@ -58,8 +58,8 @@ pub struct SpirvKindEnumerant {
pub value: Value, pub value: Value,
#[serde(default)] #[serde(default)]
pub parameters: Vec<SpirvParameter>, pub parameters: Vec<SpirvParameter>,
#[serde(default)] // #[serde(default)]
pub capabilities: Vec<String>, // pub capabilities: Vec<String>,
} }
#[derive(Clone, Debug, Deserialize)] #[derive(Clone, Debug, Deserialize)]