File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ impl LiteralRepresentation {
557
557
// Lint for Literals with a hex-representation of 2 or 3 digits
558
558
let f = & digits[ 0 ..1 ] ; // first digit
559
559
let s = & digits[ 1 ..] ; // suffix
560
-
560
+
561
561
// Powers of 2
562
562
if ( ( f. eq ( "1" ) || f. eq ( "2" ) || f. eq ( "4" ) || f. eq ( "8" ) ) && s. chars ( ) . all ( |c| c == '0' ) )
563
563
// Powers of 2 minus 1
@@ -570,7 +570,7 @@ impl LiteralRepresentation {
570
570
let f = & digits[ 0 ..1 ] ; // first digit
571
571
let m = & digits[ 1 ..digits. len ( ) - 1 ] ; // middle digits, except last
572
572
let s = & digits[ 1 ..] ; // suffix
573
-
573
+
574
574
// Powers of 2 with a margin of +15/-16
575
575
if ( ( f. eq ( "1" ) || f. eq ( "2" ) || f. eq ( "4" ) || f. eq ( "8" ) ) && m. chars ( ) . all ( |c| c == '0' ) )
576
576
|| ( ( f. eq ( "1" ) || f. eq ( "3" ) || f. eq ( "7" ) || f. eq ( "F" ) ) && m. chars ( ) . all ( |c| c == 'F' ) )
You can’t perform that action at this time.
0 commit comments