diff --git a/tokio-xmpp/examples/download_avatars.rs b/tokio-xmpp/examples/download_avatars.rs index 995e389c..d8dbd67f 100644 --- a/tokio-xmpp/examples/download_avatars.rs +++ b/tokio-xmpp/examples/download_avatars.rs @@ -230,10 +230,7 @@ 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)