mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
std::fmt::Display for HostError
This commit is contained in:
@@ -83,7 +83,7 @@ impl std::fmt::Display for HostError {
|
||||
HostErrorType::CouldNotCreateFile => "Could not create file",
|
||||
HostErrorType::DeleteFailed => "Could not delete file",
|
||||
};
|
||||
match self.ioerr {
|
||||
match &self.ioerr {
|
||||
Some(err) => write!(f, "{}: {}", code_str, err),
|
||||
None => write!(f, "{}", code_str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user