aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/ast_to_gemtext.rs5
-rw-r--r--examples/request_to_gemtext_from_ast.rs15
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(_) => {}
}
}