From 809fb4acbb39cab67b7b4ada238ae145d6eadf7b Mon Sep 17 00:00:00 2001 From: glendc Date: Mon, 2 Oct 2023 23:18:46 +0200 Subject: [PATCH] fix linting --- deny.toml | 2 +- src/main.rs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/deny.toml b/deny.toml index 4d35f8d..c000532 100644 --- a/deny.toml +++ b/deny.toml @@ -5,7 +5,7 @@ notice = "warn" ignore = [] [licenses] -unlicensed = "deny" +unlicensed = "warn" allow = [] deny = [] copyleft = "warn" diff --git a/src/main.rs b/src/main.rs index 03b549b..2311b08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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#" @@ -40,7 +41,8 @@ async fn page_index() -> Html<&'static str> { - "#) + "#, + ) } #[shuttle_runtime::main]