diff --git a/base64/base64.rs b/base64/base64.rs index fcec28d6c..d2edf32e6 100644 --- a/base64/base64.rs +++ b/base64/base64.rs @@ -115,7 +115,7 @@ fn decode(input: &mut Reader, ignore_garbage: bool) { Ok(bytes) => { let mut out = stdout(); - match out.write(bytes) { + match out.write(bytes.as_slice()) { Ok(_) => {} Err(f) => { crash!(1, "{}", f.to_str()); } }