From 98064e18c075a8b6276907c0ed73aa4456c72a6b Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:07:11 -0400 Subject: [PATCH] `excel`: use to_owned instead of to_string --- src/cmd/excel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/excel.rs b/src/cmd/excel.rs index 58788b4ad..11b584c2a 100644 --- a/src/cmd/excel.rs +++ b/src/cmd/excel.rs @@ -1043,9 +1043,9 @@ pub fn run(argv: &[&str]) -> CliResult<()> { if write!(formatted_date, "{}", dt.format(&date_format)) .is_ok() { - // the format string was ok, so use to_string() + // the format string was ok, so use to_owned() // to actually apply the DelayedFormat - work_date = formatted_date.to_string(); + work_date = formatted_date.to_owned(); } else { // if there was a format error, revert to the // default format