@@ -4,7 +4,7 @@ use core::{ffi::c_int, fmt, iter::DoubleEndedIterator, str::FromStr};
4
4
/// Cell resolution, from 0 to 15.
5
5
#[ derive( Clone , Copy , Debug , Eq , PartialEq , Hash , Ord , PartialOrd ) ]
6
6
#[ repr( u8 ) ]
7
- #[ allow ( clippy:: exhaustive_enums, reason = "not gonna change any time soon" ) ]
7
+ #[ expect ( clippy:: exhaustive_enums, reason = "not gonna change any time soon" ) ]
8
8
#[ cfg_attr(
9
9
feature = "serde" ,
10
10
derive( serde_repr:: Serialize_repr , serde_repr:: Deserialize_repr )
@@ -125,7 +125,7 @@ impl Resolution {
125
125
/// .collect::<Vec<_>>();
126
126
/// assert_eq!(res, vec![Resolution::Two, Resolution::One, Resolution::Zero]);
127
127
/// ```
128
- #[ allow ( unsafe_code, reason = "safe because of the iterator" ) ]
128
+ #[ expect ( unsafe_code, reason = "safe because of the iterator" ) ]
129
129
#[ must_use]
130
130
pub fn range (
131
131
start : Self ,
@@ -295,10 +295,6 @@ impl Resolution {
295
295
/// let avg_edge_len = h3o::Resolution::Three.edge_length_m();
296
296
/// ```
297
297
#[ must_use]
298
- #[ allow(
299
- clippy:: inconsistent_digit_grouping,
300
- reason = "don't want to group digits of the decimal part"
301
- ) ]
302
298
pub const fn edge_length_m ( self ) -> f64 {
303
299
match self {
304
300
Self :: Zero => 1281256.0107413644 ,
@@ -389,7 +385,7 @@ impl Resolution {
389
385
/// # Safety
390
386
///
391
387
/// The value must be a valid resolution.
392
- #[ allow ( unsafe_code, reason = "safe because assert" ) ]
388
+ #[ expect ( unsafe_code, reason = "safe because assert" ) ]
393
389
pub ( crate ) const fn new_unchecked ( value : u8 ) -> Self {
394
390
assert ! ( value <= h3o_bit:: MAX_RESOLUTION , "resolution out of range" ) ;
395
391
// SAFETY: range is checked above!
0 commit comments