Revert "tokio-xmpp: rustfmt pass in examples"

This reverts commit 46fdd9cdfa.
This commit is contained in:
Maxime “pep” Buquet 2024-06-18 20:32:46 +02:00
parent 46fdd9cdfa
commit a39a2330aa

View file

@ -230,10 +230,7 @@ fn handle_iq_result(pubsub: PubSub, from: &Jid) {
fn save_avatar(from: &Jid, id: String, data: &[u8]) -> io::Result<()> { fn save_avatar(from: &Jid, id: String, data: &[u8]) -> io::Result<()> {
let directory = format!("data/{}", from); let directory = format!("data/{}", from);
let filename = format!("data/{}/{}", from, id); let filename = format!("data/{}/{}", from, id);
println!( println!("Saving avatar from {} to {}.", from, filename);
"Saving avatar from {} to {}.",
from, filename
);
create_dir_all(directory)?; create_dir_all(directory)?;
let mut file = File::create(filename)?; let mut file = File::create(filename)?;
file.write_all(data) file.write_all(data)