turned warnings back on an fixed all clippy's

This commit is contained in:
ripytide 2023-04-06 17:12:03 +01:00
parent 5175055d47
commit 9ab1781c44
No known key found for this signature in database
GPG Key ID: B2629F9EC7C2FE8C
5 changed files with 6 additions and 9 deletions

View File

@ -120,7 +120,7 @@ where
T: Ord,
{
fn eq(&self, other: &Self) -> bool {
self.cmp(&other).is_eq()
self.cmp(other).is_eq()
}
}

View File

@ -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,

View File

@ -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;

View File

@ -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()));

View File

@ -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,
};