turned warnings back on an fixed all clippy's
This commit is contained in:
parent
5175055d47
commit
9ab1781c44
@ -120,7 +120,7 @@ where
|
||||
T: Ord,
|
||||
{
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.cmp(&other).is_eq()
|
||||
self.cmp(other).is_eq()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,6 @@ use std::ops::Bound;
|
||||
|
||||
use crate::bound_ord::BoundOrd;
|
||||
use crate::range_bounds_map::NiceRange;
|
||||
use crate::{TryFromBounds, TryFromBoundsError};
|
||||
|
||||
pub(crate) fn cmp_range_with_bound_ord<A, B>(
|
||||
range: A,
|
||||
|
@ -227,8 +227,6 @@ along with range_bounds_map. If not, see <https://www.gnu.org/licenses/>.
|
||||
#![feature(btree_cursors)]
|
||||
#![allow(clippy::tabs_in_doc_comments)]
|
||||
#![allow(clippy::needless_return)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
pub(crate) mod bound_ord;
|
||||
pub(crate) mod helpers;
|
||||
|
@ -442,7 +442,7 @@ where
|
||||
/// assert_eq!(map.get_at_point(101), None);
|
||||
/// ```
|
||||
pub fn get_at_point(&self, point: I) -> Option<&V> {
|
||||
self.get_entry_at_point(point).map(|(key, value)| value)
|
||||
self.get_entry_at_point(point).map(|(_, value)| value)
|
||||
}
|
||||
|
||||
/// Returns `true` if the map contains a `RangeBounds` that
|
||||
@ -1188,8 +1188,8 @@ where
|
||||
.get_key_value(overlapping_end_comp(range.end()))
|
||||
.map(|(key, _)| key)
|
||||
},
|
||||
|selfy| {},
|
||||
|selfy| {},
|
||||
|_selfy| {},
|
||||
|_selfy| {},
|
||||
)
|
||||
}
|
||||
|
||||
@ -1502,7 +1502,7 @@ where
|
||||
Ordering::Equal
|
||||
}
|
||||
|
||||
(end, start) => {
|
||||
(end, _start) => {
|
||||
let normal_result =
|
||||
BoundOrd::end(end).cmp(&BoundOrd::start(inner_range.start()));
|
||||
|
||||
|
@ -18,7 +18,7 @@ along with range_bounds_map. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use std::ops::{
|
||||
Bound, Range, RangeBounds, RangeFrom, RangeFull, RangeInclusive, RangeTo,
|
||||
Bound, Range, RangeFrom, RangeFull, RangeInclusive, RangeTo,
|
||||
RangeToInclusive,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user