diff --git a/macro/src/dialect/operation.rs b/macro/src/dialect/operation.rs index f0ade14124..d514b552e1 100644 --- a/macro/src/dialect/operation.rs +++ b/macro/src/dialect/operation.rs @@ -524,7 +524,7 @@ impl<'a> Operation<'a> { pub fn from_definition(definition: Record<'a>) -> Result { let dialect = definition.def_value("opDialect")?; let traits = Self::collect_traits(definition)?; - let has_trait = |name: &str| traits.iter().any(|r#trait| r#trait.has_name(name)); + let has_trait = |name| traits.iter().any(|r#trait| r#trait.has_name(name)); let arguments = Self::dag_constraints(definition, "arguments")?; let regions = Self::collect_regions(definition)?;