From 1e815637e3e15c7eb81b45b51b40253f3ec57ebb Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 25 Mar 2024 03:31:48 +0300 Subject: kittybox-html: cargo fmt --- templates-neo/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates-neo/src/main.rs') diff --git a/templates-neo/src/main.rs b/templates-neo/src/main.rs index 54afbb8..d2c7ea9 100644 --- a/templates-neo/src/main.rs +++ b/templates-neo/src/main.rs @@ -2,7 +2,6 @@ use std::io::Write; use kittybox_html::mf2::Entry; - fn main() { let mf2 = serde_json::from_reader::<_, microformats::types::Item>(std::io::stdin()).unwrap(); let entry = Entry::try_from(mf2).unwrap(); @@ -11,6 +10,8 @@ fn main() { entry.build(&mut article); let mut stdout = std::io::stdout().lock(); - stdout.write_all(article.build().to_string().as_bytes()).unwrap(); + stdout + .write_all(article.build().to_string().as_bytes()) + .unwrap(); stdout.write_all(b"\n").unwrap(); -} \ No newline at end of file +} -- cgit 1.4.1