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 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('/');
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue