mirror of
https://github.com/veeso/termscp.git
synced 2026-04-11 12:41:33 -07:00
lint
This commit is contained in:
@@ -148,9 +148,7 @@ impl FileTransferActivity {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// Edit file
|
// Edit file
|
||||||
if let Err(err) = self.edit_local_file(tmpfile.as_path()) {
|
self.edit_local_file(tmpfile.as_path())?;
|
||||||
return Err(err);
|
|
||||||
}
|
|
||||||
// Get local fs entry
|
// Get local fs entry
|
||||||
let tmpfile_entry: File = match self.host.stat(tmpfile.as_path()) {
|
let tmpfile_entry: File = match self.host.stat(tmpfile.as_path()) {
|
||||||
Ok(e) => e,
|
Ok(e) => e,
|
||||||
|
|||||||
@@ -326,11 +326,7 @@ impl FileTransferActivity {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Send entry; name is always None after first call
|
// Send entry; name is always None after first call
|
||||||
if let Err(err) =
|
self.filetransfer_send_recurse(entry, remote_path.as_path(), None)?
|
||||||
self.filetransfer_send_recurse(entry, remote_path.as_path(), None)
|
|
||||||
{
|
|
||||||
return Err(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -717,13 +713,11 @@ impl FileTransferActivity {
|
|||||||
}
|
}
|
||||||
// Receive entry; name is always None after first call
|
// Receive entry; name is always None after first call
|
||||||
// Local path becomes local_dir_path
|
// Local path becomes local_dir_path
|
||||||
if let Err(err) = self.filetransfer_recv_recurse(
|
self.filetransfer_recv_recurse(
|
||||||
entry,
|
entry,
|
||||||
local_dir_path.as_path(),
|
local_dir_path.as_path(),
|
||||||
None,
|
None,
|
||||||
) {
|
)?
|
||||||
return Err(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user