merge #5512 again after reverting due to incorrect rebase (#5520)

* 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:
Jędrzej Stuczyński
2025-02-26 10:52:09 +00:00
committed by GitHub
parent 69b2448500
commit 65175fee09
40 changed files with 181 additions and 69 deletions
+1
View File
@@ -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(),