Skip to content

Commit

Permalink
fix: use version for self update
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed May 23, 2024
1 parent 785c388 commit ebb6df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub fn self_update(nightly: bool) -> miette::Result<()> {
.into_diagnostic()?;
releases.sort_unstable_by(|a, z| z.date.cmp(&a.date));
if GIT_VERSION.starts_with("nightly") {
releases.retain(|rel| rel.name.as_str() > GIT_VERSION);
releases.retain(|rel| rel.version.as_str() > GIT_VERSION);
}
if let Some(latest_nightly) = releases.iter().find(|rel| rel.name.starts_with("nightly")) {
eprintln!("Latest nightly is {}", latest_nightly.version);
Expand Down

0 comments on commit ebb6df2

Please sign in to comment.