diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-17 15:18:04 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-17 15:18:04 +0100 |
| commit | ffad61acab9fa3ec771a911de462fa686bea1d67 (patch) | |
| tree | abb2b9f437c9f3ba0997532eeb1fa2960f1f04e5 /src/widgets/datetime.rs | |
| parent | chore: update cargo deps (diff) | |
| download | sl0pstatus-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.rs | 4 |
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, } } |
