File tree Expand file tree Collapse file tree
crates/charon/src/eth2wrap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ enum BeaconNodeVersionError {
2121
2222static 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 ] ;
You can’t perform that action at this time.
0 commit comments