Skip to content

Commit

Permalink
Remove unnecessary lints
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Sep 6, 2024
1 parent c622b74 commit f8cf051
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ pub struct NotFoundPage {
nonce: String,
}

#[allow(clippy::unused_async)]
async fn home(
IpAddress(ip): IpAddress,
XForwardedProto(proto): XForwardedProto,
Expand All @@ -129,22 +128,18 @@ async fn home(
}
}

#[allow(clippy::unused_async)]
async fn raw(IpAddress(ip): IpAddress) -> Result<String, Error> {
Ok(format!("{ip}\n"))
}

#[allow(clippy::unused_async)]
async fn not_found(nonce: String) -> NotFoundPage {
NotFoundPage { nonce }
}

#[allow(clippy::unused_async)]
async fn robots() -> &'static str {
include_str!("robots.txt")
}

#[allow(clippy::unused_async)]
async fn humans() -> &'static str {
"This site was created by valkyrie_pilot. Thank you for checking it out.\n"
}
Expand Down

0 comments on commit f8cf051

Please sign in to comment.