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 {
392392
393393 #[ test]
394394 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 } )
396396 . contains( "\r \n " ) ) ;
397397 assert_eq ! ( b"foobar" . to_base64( Config { line_length: Some ( 4 ) ,
398398 ..STANDARD } ) ,
@@ -401,7 +401,7 @@ mod tests {
401401
402402 #[ test]
403403 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 ,
405405 newline: Newline :: LF ,
406406 ..STANDARD } )
407407 . contains( "\n " ) ) ;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl FromHex for str {
128128 // This may be an overestimate if there is any whitespace
129129 let mut b = Vec :: with_capacity ( self . len ( ) / 2 ) ;
130130 let mut modulus = 0 ;
131- let mut buf = 08 ;
131+ let mut buf = 0 ;
132132
133133 for ( idx, byte) in self . bytes ( ) . enumerate ( ) {
134134 buf <<= 4 ;
You can’t perform that action at this time.
0 commit comments