* setup workspace global lints to prevent needless panics * removed sources of panic in nym-crypto, nym-node and nym-api * adjusted test code
This commit is contained in:
committed by
GitHub
parent
69b2448500
commit
65175fee09
@@ -109,6 +109,7 @@ impl NodeUptimes {
|
||||
|
||||
// the unwraps in Uptime::from_ratio are fine because it's impossible for us to have more "up" results
|
||||
// than total test runs as we just bounded them
|
||||
#[allow(clippy::unwrap_used)]
|
||||
NodeUptimes {
|
||||
most_recent: most_recent.try_into().unwrap(),
|
||||
last_hour: Uptime::from_uptime_sum(last_hour_sum, last_hour_test_runs).unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user