Skip to content

Commit

Permalink
excel: use to_owned instead of to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 19, 2024
1 parent 77171b4 commit 98064e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/excel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98064e1

Please sign in to comment.