There was an error while loading. Please reload this page.
1 parent bf6ab1f commit e12e3b8Copy full SHA for e12e3b8
1 file changed
crates/site-api/src/map.rs
@@ -581,6 +581,7 @@ fn telemetry_x(point: &PrismTelemetryPoint) -> u32 {
581
/// Params prefer telemetry `n_params`, then the list-row `n_params` so
582
/// historical runs still surface a measured size when the detail blob is thin.
583
#[must_use]
584
+#[allow(clippy::too_many_lines)]
585
pub fn prism_window(
586
recipe: Option<&Value>,
587
status: Option<&Value>,
@@ -616,8 +617,7 @@ pub fn prism_window(
616
617
let param_ceiling = recipe
618
.and_then(|r| r.get("max_params"))
619
.and_then(Value::as_u64)
- .map(|p| p / 1_000_000)
620
- .unwrap_or(0);
+ .map_or(0, |p| p / 1_000_000);
621
let mut series: Vec<(f64, LossSeries)> = Vec::new();
622
for row in subs {
623
if row.get("status").and_then(Value::as_str) != Some("terminated") {
0 commit comments