diff options
author | Joris | 2024-11-17 14:23:15 +0100 |
---|---|---|
committer | Joris | 2024-11-17 14:23:15 +0100 |
commit | 0e75ef4efe27535f04b8f5bfc13b2165c3343781 (patch) | |
tree | cdae490293d94b74f45e47c59b4aba57b7316c41 /src/gui/form/utils.rs | |
parent | 5f526ef14285b5fd2dc5892d6dd8b307981f743f (diff) |
Fix clippy warnings1.3.0
Diffstat (limited to 'src/gui/form/utils.rs')
-rw-r--r-- | src/gui/form/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<NaiveTime>) -> 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 { |