aboutsummaryrefslogtreecommitdiff
path: root/examples/request_to_gemtext_from_ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/request_to_gemtext_from_ast.rs')
-rw-r--r--examples/request_to_gemtext_from_ast.rs15
1 files changed, 7 insertions, 8 deletions
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(_) => {}
}
}