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