From 20eea2b6dd3d78220968b304a567ba96148307a7 Mon Sep 17 00:00:00 2001 From: Adrian Hedqvist Date: Wed, 22 Mar 2023 23:55:30 +0100 Subject: [PATCH] fix clippy warnings --- src/handlers/posts.rs | 2 +- src/main.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/handlers/posts.rs b/src/handlers/posts.rs index 5efc99d..ac80c3e 100644 --- a/src/handlers/posts.rs +++ b/src/handlers/posts.rs @@ -6,7 +6,7 @@ use pulldown_cmark::{html, Options, Parser}; use tracing::log::*; use super::{Error, Result}; -use crate::{handlers::PageContext, Post, State}; +use crate::{handlers::PageContext, State}; pub async fn view(Path(path): Path, Extension(state): Extension>) -> Result { let post = path.trim_end_matches('/'); diff --git a/src/main.rs b/src/main.rs index df64ffd..2f597c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,8 @@ use std::sync::Arc; use axum::{ - handler::Handler, - http::StatusCode, - routing::{get, get_service}, - Extension, Router, ServiceExt, + routing::get, + Extension, Router, }; use color_eyre::eyre::Result; use glob::glob;