Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit a8f8f32

Browse files
authored
Merge pull request #183 from jscissr/fix-08
Fix automated code update mistake
2 parents eb1cd5d + 57ab9f9 commit a8f8f32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/base64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"));

src/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)