refactor: replace qualified path with use
This commit is contained in:
parent
561ab77f65
commit
489c6ea8bf
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ use axum::{
|
|||
};
|
||||
use axum_extra::TypedHeader;
|
||||
use tower_http::{services::ServeDir, trace::TraceLayer};
|
||||
use views::askama::WelcomeTemplate;
|
||||
|
||||
use std::{io, net::SocketAddr};
|
||||
|
||||
|
@ -45,7 +46,7 @@ async fn main() -> io::Result<()> {
|
|||
async fn welcome() -> impl IntoResponse {
|
||||
let fact = views::get_cat_fact().await;
|
||||
|
||||
views::askama::WelcomeTemplate { fact }
|
||||
WelcomeTemplate { fact }
|
||||
}
|
||||
|
||||
async fn log_source(
|
||||
|
|
Loading…
Reference in a new issue