address warning (result not used in "copy")

This commit is contained in:
Patryk Laurent 2023-01-01 21:11:09 -08:00
parent 38296a9510
commit d8a8046521

View file

@ -161,7 +161,7 @@ impl<'a> ShellCmdApi<'a> for PddbCmd {
if let Some(srcdescriptor) = tokens.next() {
if let Some(dstdescriptor) = tokens.next() {
match std::fs::copy(srcdescriptor, dstdescriptor) {
Ok(result) => {
Ok(_result) => {
write!(ret, "Copy from {} to {} succeeded", srcdescriptor, dstdescriptor).ok();
}
Err(e) => {