mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 21:17:46 +00:00
base64, cp: fix build
This commit is contained in:
parent
c32caba9b6
commit
cb1dd390bb
2 changed files with 3 additions and 5 deletions
|
@ -129,7 +129,7 @@ fn decode(input: &mut Reader, ignore_garbage: bool) {
|
|||
}
|
||||
}
|
||||
Err(s) => {
|
||||
crash!(1, "error: {} ({})", s.description(), s.detail().unwrap_or("".to_string()));
|
||||
crash!(1, "error: {} ({:?})", s.description(), s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,8 +117,7 @@ fn copy(matches: getopts::Matches) {
|
|||
|
||||
let io_result = fs::copy(source, &dest);
|
||||
|
||||
if io_result.is_err() {
|
||||
let err = io_result.unwrap_err();
|
||||
if let Err(err) = io_result {
|
||||
error!("error: {}", err.to_string());
|
||||
panic!();
|
||||
}
|
||||
|
@ -142,8 +141,7 @@ fn copy(matches: getopts::Matches) {
|
|||
|
||||
let io_result = fs::copy(source, &full_dest);
|
||||
|
||||
if io_result.is_err() {
|
||||
let err = io_result.unwrap_err();
|
||||
if let Err(err) = io_result {
|
||||
error!("error: {}", err.to_string());
|
||||
panic!()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue