This repository was archived by the owner on Dec 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ mod tests {
392
392
393
393
#[ test]
394
394
fn test_to_base64_crlf_line_break ( ) {
395
- assert ! ( ![ 08 ; 1000 ] . to_base64( Config { line_length: None , ..STANDARD } )
395
+ assert ! ( ![ 0 ; 1000 ] . to_base64( Config { line_length: None , ..STANDARD } )
396
396
. contains( "\r \n " ) ) ;
397
397
assert_eq ! ( b"foobar" . to_base64( Config { line_length: Some ( 4 ) ,
398
398
..STANDARD } ) ,
@@ -401,7 +401,7 @@ mod tests {
401
401
402
402
#[ test]
403
403
fn test_to_base64_lf_line_break ( ) {
404
- assert ! ( ![ 08 ; 1000 ] . to_base64( Config { line_length: None ,
404
+ assert ! ( ![ 0 ; 1000 ] . to_base64( Config { line_length: None ,
405
405
newline: Newline :: LF ,
406
406
..STANDARD } )
407
407
. contains( "\n " ) ) ;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl FromHex for str {
128
128
// This may be an overestimate if there is any whitespace
129
129
let mut b = Vec :: with_capacity ( self . len ( ) / 2 ) ;
130
130
let mut modulus = 0 ;
131
- let mut buf = 08 ;
131
+ let mut buf = 0 ;
132
132
133
133
for ( idx, byte) in self . bytes ( ) . enumerate ( ) {
134
134
buf <<= 4 ;
You can’t perform that action at this time.
0 commit comments