fix clippy warnings
This commit is contained in:
parent
17e892a654
commit
20eea2b6dd
2 changed files with 3 additions and 5 deletions
|
@ -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<String>, Extension(state): Extension<Arc<State>>) -> Result {
|
||||
let post = path.trim_end_matches('/');
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue