Fixed tracing message not showing in AppBuilder

This commit is contained in:
Martin Berg Alstad 2024-06-26 10:31:20 +02:00
parent 83f85f1938
commit 752d1a9d10
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -284,7 +284,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]] [[package]]
name = "lib" name = "lib"
version = "1.1.0" version = "1.1.1"
dependencies = [ dependencies = [
"axum", "axum",
"derive", "derive",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "lib" name = "lib"
version = "1.1.0" version = "1.1.1"
edition = "2021" edition = "2021"
authors = ["Martin Berg Alstad"] authors = ["Martin Berg Alstad"]

View File

@ -77,8 +77,8 @@ impl AppBuilder {
} }
pub async fn serve(self) -> io::Result<()> { pub async fn serve(self) -> io::Result<()> {
let listener = self.listener().await?;
let _ = fmt_trace(); let _ = fmt_trace();
let listener = self.listener().await?;
if self.normalize_path.unwrap_or(true) { if self.normalize_path.unwrap_or(true) {
let app = NormalizePathLayer::trim_trailing_slash().layer(self.create_app()); let app = NormalizePathLayer::trim_trailing_slash().layer(self.create_app());