aboutsummaryrefslogtreecommitdiff
path: root/src/modules/web.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-03-05 05:31:22 -0800
committerFuwn <[email protected]>2024-03-05 05:31:22 -0800
commit093c7ac678628b478f0b8888108ef50988aee2ad (patch)
tree6c73cb3ca0c5e481816bcf85992283c5df2fb8e9 /src/modules/web.rs
parentfix(response): unused members (diff)
downloadlocus-093c7ac678628b478f0b8888108ef50988aee2ad.tar.xz
locus-093c7ac678628b478f0b8888108ef50988aee2ad.zip
feat(rustc): bump nightly
Diffstat (limited to 'src/modules/web.rs')
-rw-r--r--src/modules/web.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/web.rs b/src/modules/web.rs
index 7551b2c..02354cd 100644
--- a/src/modules/web.rs
+++ b/src/modules/web.rs
@@ -35,13 +35,13 @@ pub fn module(router: &mut windmark::router::Router) {
"World Wide Web to Gemini Gateway",
|context| {
success(
- &r#"# World Wide Web to Gemini Gateway
+ &r"# World Wide Web to Gemini Gateway
To use this gateway, simply append the address of your target resource to the end of the current route, minus the protocol.
To visit the web version of this exact page, <https://fuwn.me/web>, you would visit <gemini://fuwn.me/web/fuwn.me/web>.
-=> /web/fuwn.me/web Try it!"#,
+=> /web/fuwn.me/web Try it!",
&context,
)
},
@@ -96,7 +96,7 @@ To visit the web version of this exact page, <https://fuwn.me/web>, you would vi
while let Some(element) = nodes.next() {
let mut text = String::new();
- element.as_tag().map_or((), |tag| {
+ let () = element.as_tag().map_or((), |tag| {
match tag.name().as_utf8_str().to_string().as_str() {
"p" => {
contents.push(format!(
@@ -162,7 +162,7 @@ To visit the web version of this exact page, <https://fuwn.me/web>, you would vi
println!(
"{}: {}",
- tag.name().as_utf8_str().to_string(),
+ tag.name().as_utf8_str(),
tag.inner_text(parser)
);