From 46fdd9cdfa86ff9362af51fc01db483ac36a46ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 18 Jun 2024 20:21:23 +0200 Subject: [PATCH] tokio-xmpp: rustfmt pass in examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- tokio-xmpp/examples/download_avatars.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tokio-xmpp/examples/download_avatars.rs b/tokio-xmpp/examples/download_avatars.rs index d8dbd67f..995e389c 100644 --- a/tokio-xmpp/examples/download_avatars.rs +++ b/tokio-xmpp/examples/download_avatars.rs @@ -230,7 +230,10 @@ fn handle_iq_result(pubsub: PubSub, from: &Jid) { fn save_avatar(from: &Jid, id: String, data: &[u8]) -> io::Result<()> { let directory = format!("data/{}", from); let filename = format!("data/{}/{}", from, id); - println!("Saving avatar from {} to {}.", from, filename); + println!( + "Saving avatar from {} to {}.", + from, filename + ); create_dir_all(directory)?; let mut file = File::create(filename)?; file.write_all(data)