diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crates/candelabra/src/cost/benchmark.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index 439d42a..a5ca042 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -155,12 +155,12 @@ fn parse_time_str(quantity: &str, suffix: &str) -> Option<Cost> { Some( f64::from_str(quantity).ok()? * match suffix { - " s" => 1e9, + "s" => 1e9, "ms" => 1e6, "µs" => 1e3, "ns" => 1.0, "ps" => 1e-3, - _ => todo!(), + s => todo!("unrecognised suffix {}", s), }, ) } |