From 93432b708cb40ce2752e02662d80070e12cf461e Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Fri, 24 May 2024 14:14:03 +0200 Subject: [PATCH] fix missing timing annoying error --- libcli/src/terminal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/src/terminal.rs b/libcli/src/terminal.rs index d78ae3b909..23e44678f6 100644 --- a/libcli/src/terminal.rs +++ b/libcli/src/terminal.rs @@ -129,7 +129,7 @@ fn render_node_prefixed( // flops column let mut flops_column = if options.profile && options.cost { - let timing: f64 = tags.profile.as_ref().unwrap().as_secs_f64(); + let timing: f64 = tags.profile.as_ref().map(|d| d.as_secs_f64()).unwrap_or(0.0); let flops_column_pad = flops_column_pad.clone(); let it = tags.cost.iter().map(move |c| { if c.0.is_compute() {