File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ macro_rules! min_num_traits {
60
60
( $t : ty, from_u32 => $from_u32 : expr) => {
61
61
impl MinNumTraits for $t {
62
62
fn from_u32( n: u32 ) -> Option <$t> {
63
+ #[ allow( clippy:: redundant_closure_call) ]
63
64
$from_u32( n)
64
65
}
65
66
@@ -153,8 +154,7 @@ fn btou_assert() {
153
154
pub fn btou_radix < I : MinNumTraits > ( bytes : & [ u8 ] , radix : u32 ) -> Result < I , ParseIntegerError > {
154
155
assert ! (
155
156
( 2 ..=36 ) . contains( & radix) ,
156
- "radix must lie in the range 2..=36, found {}" ,
157
- radix
157
+ "radix must lie in the range 2..=36, found {radix}"
158
158
) ;
159
159
160
160
let base = I :: from_u32 ( radix) . expect ( "radix can be represented as integer" ) ;
@@ -286,8 +286,7 @@ fn btoi_assert() {
286
286
fn btoi_radix < I : MinNumTraits > ( bytes : & [ u8 ] , radix : u32 ) -> Result < I , ParseIntegerError > {
287
287
assert ! (
288
288
( 2 ..=36 ) . contains( & radix) ,
289
- "radix must lie in the range 2..=36, found {}" ,
290
- radix
289
+ "radix must lie in the range 2..=36, found {radix}"
291
290
) ;
292
291
293
292
let base = I :: from_u32 ( radix) . expect ( "radix can be represented as integer" ) ;
You can’t perform that action at this time.
0 commit comments