Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 6, 2023
1 parent 8f75c13 commit e909750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macro/src/dialect/operation/accessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ impl<'a> OperationField<'a> {
Some(if constraint.is_unit()? {
quote! { self.operation.attribute(#name).is_some() }
} else {
// TODO Handle returning `melior::Attribute`.
quote! {
#[allow(clippy::needless_question_mark)]
Ok(self.operation.attribute(#name)?.try_into()?)
}
})
Expand Down

0 comments on commit e909750

Please sign in to comment.