From 8732b7be5b78372aa251014109318230343cfc74 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Tue, 5 Dec 2023 21:58:15 +0900 Subject: [PATCH] Refactor --- macro/src/dialect/operation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;