Skip to content

Commit 07cdc2c

Browse files
committed
Prepare for removal of newtype struct deref
1 parent caf905a commit 07cdc2c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

types/range.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ struct OptBound<'a, S, T>(&'a Option<RangeBound<S, T>>);
166166

167167
impl<'a, S: BoundSided, T: Ord> Ord for OptBound<'a, S, T> {
168168
fn lt(&self, other: &OptBound<'a, S, T>) -> bool {
169-
match (**self, **other) {
170-
(&None, &None) => false,
171-
(&None, _) => BoundSided::side(None::<S>) == Lower,
172-
(_, &None) => BoundSided::side(None::<S>) == Upper,
173-
(&Some(ref a), &Some(ref b)) => a < b
169+
match (*self, *other) {
170+
(OptBound(&None), OptBound(&None)) => false,
171+
(OptBound(&None), _) => BoundSided::side(None::<S>) == Lower,
172+
(_, OptBound(&None)) => BoundSided::side(None::<S>) == Upper,
173+
(OptBound(&Some(ref a)), OptBound(&Some(ref b))) => a < b
174174
}
175175
}
176176
}

0 commit comments

Comments
 (0)