aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets/datetime.rs
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-12-17 15:18:04 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-12-17 15:18:04 +0100
commitffad61acab9fa3ec771a911de462fa686bea1d67 (patch)
treeabb2b9f437c9f3ba0997532eeb1fa2960f1f04e5 /src/widgets/datetime.rs
parentchore: update cargo deps (diff)
downloadsl0pstatus-ffad61acab9fa3ec771a911de462fa686bea1d67.tar.gz
sl0pstatus-ffad61acab9fa3ec771a911de462fa686bea1d67.tar.xz
sl0pstatus-ffad61acab9fa3ec771a911de462fa686bea1d67.zip
chore: move from to_string to to_owned
Diffstat (limited to 'src/widgets/datetime.rs')
-rw-r--r--src/widgets/datetime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/datetime.rs b/src/widgets/datetime.rs
index b6a1193..ef2fbee 100644
--- a/src/widgets/datetime.rs
+++ b/src/widgets/datetime.rs
@@ -36,8 +36,8 @@ impl DateTimeWidget {
}
Self {
- format: format.to_string(),
- color_format: FormattedPart::from_format_string(color_format.to_string()),
+ format: format.to_owned(),
+ color_format: FormattedPart::from_format_string(color_format.to_owned()),
time_zone,
}
}