diff --git a/leo/updater.rs b/leo/updater.rs index 35a1e88989..a37ee7d184 100644 --- a/leo/updater.rs +++ b/leo/updater.rs @@ -72,10 +72,7 @@ impl Updater { if bump_is_greater(¤t_version, &latest_release.version)? { Ok(latest_release.version) } else { - Err(UpdaterError::OldReleaseVersion( - current_version.to_string(), - latest_release.version.to_string(), - )) + Err(UpdaterError::OldReleaseVersion(current_version, latest_release.version)) } }