mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-02 05:15:54 +00:00
Fix Clippy warning
This one appears in Rust 1.75.0.
This commit is contained in:
parent
76a6e6b6c3
commit
501a9ec2f5
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user