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(