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;