Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Oct 2, 2023
1 parent c3aa6c2 commit 809fb4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ notice = "warn"
ignore = []

[licenses]
unlicensed = "deny"
unlicensed = "warn"
allow = []
deny = []
copyleft = "warn"
Expand Down
10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use std::path::PathBuf;

use axum::{routing::get, Router, response::Html};
use axum::{response::Html, routing::get, Router};
use tower_http::services::ServeDir;

async fn page_index() -> Html<&'static str> {
async fn page_index() -> Html<&'static str> {
// TODO: support template
Html(r#"
Html(
r#"
<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -40,7 +41,8 @@ async fn page_index() -> Html<&'static str> {
</body>
</html>
"#)
"#,
)
}

#[shuttle_runtime::main]
Expand Down

0 comments on commit 809fb4a

Please sign in to comment.