1
0
Fork 0

fix clippy warnings

This commit is contained in:
Adrian Hedqvist 2023-03-22 23:55:30 +01:00
parent 17e892a654
commit 20eea2b6dd
2 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,7 @@ use pulldown_cmark::{html, Options, Parser};
use tracing::log::*; use tracing::log::*;
use super::{Error, Result}; use super::{Error, Result};
use crate::{handlers::PageContext, Post, State}; use crate::{handlers::PageContext, State};
pub async fn view(Path(path): Path<String>, Extension(state): Extension<Arc<State>>) -> Result { pub async fn view(Path(path): Path<String>, Extension(state): Extension<Arc<State>>) -> Result {
let post = path.trim_end_matches('/'); let post = path.trim_end_matches('/');

View file

@ -1,10 +1,8 @@
use std::sync::Arc; use std::sync::Arc;
use axum::{ use axum::{
handler::Handler, routing::get,
http::StatusCode, Extension, Router,
routing::{get, get_service},
Extension, Router, ServiceExt,
}; };
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use glob::glob; use glob::glob;