File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ macro_rules! uint_impl {
3
3
Self = $SelfT: ty,
4
4
ActualT = $ActualT: ident,
5
5
SignedT = $SignedT: ident,
6
- NonZeroT = $NonZeroT: ty,
7
6
8
7
// There are all for use *only* in doc comments.
9
8
// As such, they're all passed as literals -- passing them as a string
@@ -1216,8 +1215,7 @@ macro_rules! uint_impl {
1216
1215
without modifying the original"]
1217
1216
#[ inline]
1218
1217
pub const fn checked_ilog2( self ) -> Option <u32 > {
1219
- // FIXME: Simply use `NonZero::new` once it is actually generic.
1220
- if let Some ( x) = <$NonZeroT>:: new( self ) {
1218
+ if let Some ( x) = NonZero :: new( self ) {
1221
1219
Some ( x. ilog2( ) )
1222
1220
} else {
1223
1221
None
@@ -1239,8 +1237,7 @@ macro_rules! uint_impl {
1239
1237
without modifying the original"]
1240
1238
#[ inline]
1241
1239
pub const fn checked_ilog10( self ) -> Option <u32 > {
1242
- // FIXME: Simply use `NonZero::new` once it is actually generic.
1243
- if let Some ( x) = <$NonZeroT>:: new( self ) {
1240
+ if let Some ( x) = NonZero :: new( self ) {
1244
1241
Some ( x. ilog10( ) )
1245
1242
} else {
1246
1243
None
You can’t perform that action at this time.
0 commit comments