Skip to content

Commit

Permalink
refactor: remove unnecessary ref
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Oct 18, 2023
1 parent 269fa1a commit fca9a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/origlang-ir-optimizer/src/ir1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ gen_cast_from!(Ordering, i64);

impl<T: PartialOrd + PartialEq + CastFrom<Ordering>> OutputCompareResultAsSelf for T {
fn compare_self(&self, other: &Self) -> Option<Self> {
self.partial_cmp(&other).map(T::cast_from)
self.partial_cmp(other).map(T::cast_from)
}
}

Expand Down

0 comments on commit fca9a3a

Please sign in to comment.