Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Oct 17, 2023
1 parent c92c7ba commit fd8a0a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions melior/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,19 @@ impl<'c> ContextRef<'c> {
}
}

impl<'a> PartialEq for ContextRef<'a> {
impl<'c> PartialEq for ContextRef<'c> {
fn eq(&self, other: &Self) -> bool {
unsafe { mlirContextEqual(self.raw, other.raw) }
}
}

impl<'a> PartialEq<Context> for ContextRef<'a> {
impl<'c> PartialEq<Context> for ContextRef<'c> {
fn eq(&self, other: &Context) -> bool {
self == &other.to_ref()
}
}

impl<'a> Eq for ContextRef<'a> {}
impl<'c> Eq for ContextRef<'c> {}

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit fd8a0a7

Please sign in to comment.