From 56f53ddca0135e17708af585bfb50144d6836f55 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 18 May 2023 06:24:50 +0000 Subject: fmt: update rustfmt.toml --- examples/ast_to_gemtext.rs | 5 +---- examples/request_to_gemtext_from_ast.rs | 15 +++++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'examples') diff --git a/examples/ast_to_gemtext.rs b/examples/ast_to_gemtext.rs index 5ceef21..4b96893 100644 --- a/examples/ast_to_gemtext.rs +++ b/examples/ast_to_gemtext.rs @@ -46,8 +46,5 @@ This is more text after a blank line. That was a link without text."#; fn main() { - println!( - "{}", - germ::ast::Ast::from_string(EXAMPLE_GEMTEXT).to_gemtext() - ); + println!("{}", germ::ast::Ast::from_string(EXAMPLE_GEMTEXT).to_gemtext()); } diff --git a/examples/request_to_gemtext_from_ast.rs b/examples/request_to_gemtext_from_ast.rs index 174abcf..2127433 100644 --- a/examples/request_to_gemtext_from_ast.rs +++ b/examples/request_to_gemtext_from_ast.rs @@ -18,14 +18,13 @@ fn main() { match germ::request::request(&url::Url::parse("gemini://fuwn.me/").unwrap()) { - Ok(response) => - println!( - "{}", - germ::ast::Ast::from_string( - &*response.content().clone().unwrap_or_else(|| "".to_string()) - ) - .to_gemtext() - ), + Ok(response) => println!( + "{}", + germ::ast::Ast::from_string( + &*response.content().clone().unwrap_or_else(|| "".to_string()) + ) + .to_gemtext() + ), Err(_) => {} } } -- cgit v1.2.3