diff --git a/plugins/updater/src/commands.rs b/plugins/updater/src/commands.rs index 453c9db2..ae84294f 100644 --- a/plugins/updater/src/commands.rs +++ b/plugins/updater/src/commands.rs @@ -71,8 +71,7 @@ pub(crate) async fn check( let formatted_date = if let Some(date) = update.date { let formatted_date = date .format(&time::format_description::well_known::Rfc3339) - .map_err(|_| crate::Error::FormatDate)? - .to_string(); + .map_err(|_| crate::Error::FormatDate)?; Some(formatted_date) } else { None