From daf78f0547fb947e055606e74110119392ebc886 Mon Sep 17 00:00:00 2001 From: fab Date: Sun, 19 May 2024 10:38:51 +0200 Subject: [PATCH] fix build without tracing --- src/app.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index bdbf2db..49f4fbd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -11,6 +11,7 @@ use crate::ui::{ CalendarViewMode as ViewMode, } }; +#[cfg(feature = "tracing")] use crate::tracepoints; use chrono::{Datelike, NaiveDate, Months, Utc, Days}; use std::path; @@ -110,8 +111,8 @@ impl CalendarApp { let container = Container::new(content) .width(Length::Fill) .height(Length::Fill) - .center_x() - .center_y() + .center_x(Length::Fill) + .center_y(Length::Fill) .into(); #[cfg(feature = "tracing")]