diff options
| author | Fuwn <[email protected]> | 2023-05-18 06:24:50 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-18 06:24:50 +0000 |
| commit | 56f53ddca0135e17708af585bfb50144d6836f55 (patch) | |
| tree | 1d5beea4c266a7d9bdd50fe4750540d618b0b160 /examples | |
| parent | fix: improve macro hygiene (diff) | |
| download | germ-56f53ddca0135e17708af585bfb50144d6836f55.tar.xz germ-56f53ddca0135e17708af585bfb50144d6836f55.zip | |
fmt: update rustfmt.toml
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ast_to_gemtext.rs | 5 | ||||
| -rw-r--r-- | examples/request_to_gemtext_from_ast.rs | 15 |
2 files changed, 8 insertions, 12 deletions
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(_) => {} } } |