Skip to content

Commit ccc41f1

Browse files
committed
Fix clippy lint errors
1 parent af04659 commit ccc41f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/charon/src/eth2wrap/version.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum BeaconNodeVersionError {
2121

2222
static MINIMUM_BEACON_NODE_VERSIONS: LazyLock<std::collections::HashMap<&str, version::SemVer>> =
2323
LazyLock::new(|| {
24+
#[allow(clippy::unwrap_used, reason = "literals should be valid semver")]
2425
std::collections::HashMap::from([
2526
("lighthouse", version::SemVer::parse("v8.0.0-rc.0").unwrap()),
2627
("teku", version::SemVer::parse("v25.9.3").unwrap()),
@@ -44,7 +45,7 @@ fn check_beacon_node_version_status(bn_version: &str) -> Result<()> {
4445
return Err(BeaconNodeVersionError::InvalidFormat);
4546
}
4647

47-
let client = version::SemVer::parse(&format!("v{}", &matches[2]))
48+
let client = version::SemVer::parse(format!("v{}", &matches[2]))
4849
.map_err(|_| BeaconNodeVersionError::InvalidFormat)?;
4950

5051
let name = &matches[1];

0 commit comments

Comments
 (0)