Skip to content

Commit

Permalink
Fix Clippy warning
Browse files Browse the repository at this point in the history
This one appears in Rust 1.75.0.
  • Loading branch information
hannobraun committed Jan 3, 2024
1 parent 76a6e6b commit 501a9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/release-operator/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl Crate {
serde_json::from_str::<CrateVersions>(resp.text()?.as_str())
.context("deserializing crates.io response")?;

Ok(versions.versions.get(0).unwrap().version.to_owned())
Ok(versions.versions.first().unwrap().version.to_owned())
}

fn determine_state(&self) -> anyhow::Result<CrateState> {
Expand Down

0 comments on commit 501a9ec

Please sign in to comment.