From dfdf0d3bae5b3cfef7a77ee9e431eab2641f16fc Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Fri, 9 Aug 2024 13:00:00 +0200 Subject: [PATCH] fixup! refacto: extract livereload layer setup into a function --- crates/app/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 91bf2d3..bf3cea0 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -3,10 +3,10 @@ use axum::body::Body; use axum::http::Request; use listenfd::ListenFd; use notify::Watcher; -use tower_livereload::predicate::Predicate; use std::env; use std::path::Path; use tokio::net::TcpListener; +use tower_livereload::predicate::Predicate; use tower_livereload::LiveReloadLayer; /// Nous filtrons les requêtes de `htmx` pour ne pas inclure le script _JS_ qui gère le rechargement @@ -39,8 +39,8 @@ fn get_livereload_layer(templates_path: &Path) -> LiveReloadLayer(NotHtmxPredicate) }