examples: Fix new clippy warning
This commit is contained in:
parent
bf55ca1556
commit
16abba2af2
@ -259,7 +259,8 @@ async fn read_config() -> io::Result<Config> {
|
|||||||
error.push_str("\n required field `homeserver` is missing")
|
error.push_str("\n required field `homeserver` is missing")
|
||||||
}
|
}
|
||||||
if let Err(e) = username {
|
if let Err(e) = username {
|
||||||
error.push_str(&format!("\n {}", e))
|
error.push_str("\n ");
|
||||||
|
error.push_str(&e);
|
||||||
}
|
}
|
||||||
Err(io::Error::new(io::ErrorKind::InvalidData, error))
|
Err(io::Error::new(io::ErrorKind::InvalidData, error))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user