From 0e75ef4efe27535f04b8f5bfc13b2165c3343781 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Nov 2024 14:23:15 +0100 Subject: Fix clippy warnings --- src/gui/form/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/form/utils.rs') diff --git a/src/gui/form/utils.rs b/src/gui/form/utils.rs index 5cf59e3..d0b4806 100644 --- a/src/gui/form/utils.rs +++ b/src/gui/form/utils.rs @@ -5,7 +5,7 @@ use chrono::NaiveTime; use crate::model::time; pub fn time_entry(time: Option) -> gtk::Entry { - entry(&time.map(time::pprint).unwrap_or_else(|| "".to_string())) + entry(&time.map(time::pprint).unwrap_or_default()) } pub fn entry(text: &str) -> gtk::Entry { -- cgit v1.2.3