From 16abba2af2d124bb03c23377b9d9a9fea5ce0b79 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 6 May 2022 16:05:08 +0200 Subject: [PATCH] examples: Fix new clippy warning --- examples/joke_bot/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/joke_bot/src/main.rs b/examples/joke_bot/src/main.rs index da241486..8a079dd0 100644 --- a/examples/joke_bot/src/main.rs +++ b/examples/joke_bot/src/main.rs @@ -259,7 +259,8 @@ async fn read_config() -> io::Result { 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)) }