examples: Fix new clippy warning

This commit is contained in:
Jonas Platte 2022-05-06 16:05:08 +02:00
parent bf55ca1556
commit 16abba2af2
No known key found for this signature in database
GPG Key ID: BBA95679259D342F

View File

@ -259,7 +259,8 @@ async fn read_config() -> io::Result<Config> {
error.push_str("\n required field `homeserver` is missing")
}
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))
}