mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57: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) => {
|
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);
|
let io_result = fs::copy(source, &dest);
|
||||||
|
|
||||||
if io_result.is_err() {
|
if let Err(err) = io_result {
|
||||||
let err = io_result.unwrap_err();
|
|
||||||
error!("error: {}", err.to_string());
|
error!("error: {}", err.to_string());
|
||||||
panic!();
|
panic!();
|
||||||
}
|
}
|
||||||
|
@ -142,8 +141,7 @@ fn copy(matches: getopts::Matches) {
|
||||||
|
|
||||||
let io_result = fs::copy(source, &full_dest);
|
let io_result = fs::copy(source, &full_dest);
|
||||||
|
|
||||||
if io_result.is_err() {
|
if let Err(err) = io_result {
|
||||||
let err = io_result.unwrap_err();
|
|
||||||
error!("error: {}", err.to_string());
|
error!("error: {}", err.to_string());
|
||||||
panic!()
|
panic!()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue