mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
clippy
This commit is contained in:
@@ -98,7 +98,7 @@ impl std::fmt::Display for HostError {
|
|||||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
let p_str: String = match self.path.as_ref() {
|
let p_str: String = match self.path.as_ref() {
|
||||||
None => String::new(),
|
None => String::new(),
|
||||||
Some(p) => format!(" ({})", p.display().to_string()),
|
Some(p) => format!(" ({})", p.display()),
|
||||||
};
|
};
|
||||||
match &self.ioerr {
|
match &self.ioerr {
|
||||||
Some(err) => write!(f, "{}: {}{}", self.error, err, p_str),
|
Some(err) => write!(f, "{}: {}{}", self.error, err, p_str),
|
||||||
|
|||||||
Reference in New Issue
Block a user