Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 5, 2023
1 parent 115a327 commit 8732b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ impl<'a> Operation<'a> {
pub fn from_definition(definition: Record<'a>) -> Result<Self, Error> {
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)?;
Expand Down

0 comments on commit 8732b7b

Please sign in to comment.