From 489c6ea8bf0755862db629f6033b0d89b890b264 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 14 Nov 2024 08:00:56 -0800 Subject: [PATCH] refactor: replace qualified path with use --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 86e8570..89c8cc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(