We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1682382 + 47414aa commit 4ae5296Copy full SHA for 4ae5296
library/core/src/ops/range.rs
@@ -812,12 +812,12 @@ pub trait RangeBounds<T: ?Sized> {
812
U: ?Sized + PartialOrd<T>,
813
{
814
(match self.start_bound() {
815
- Included(ref start) => *start <= item,
816
- Excluded(ref start) => *start < item,
+ Included(start) => start <= item,
+ Excluded(start) => start < item,
817
Unbounded => true,
818
}) && (match self.end_bound() {
819
- Included(ref end) => item <= *end,
820
- Excluded(ref end) => item < *end,
+ Included(end) => item <= end,
+ Excluded(end) => item < end,
821
822
})
823
}
0 commit comments