Rollup merge of #87523 - frogtd:patch-2, r=dtolnay
Stop creating a reference then immediately dereferencing it. Stop creating a reference then immediately dereferencing it.
This commit is contained in:
commit
4ae529688a
1 changed files with 4 additions and 4 deletions
|
|
@ -812,12 +812,12 @@ pub trait RangeBounds<T: ?Sized> {
|
|||
U: ?Sized + PartialOrd<T>,
|
||||
{
|
||||
(match self.start_bound() {
|
||||
Included(ref start) => *start <= item,
|
||||
Excluded(ref start) => *start < item,
|
||||
Included(start) => start <= item,
|
||||
Excluded(start) => start < item,
|
||||
Unbounded => true,
|
||||
}) && (match self.end_bound() {
|
||||
Included(ref end) => item <= *end,
|
||||
Excluded(ref end) => item < *end,
|
||||
Included(end) => item <= end,
|
||||
Excluded(end) => item < end,
|
||||
Unbounded => true,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue