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