diff --git a/examples/benchmark/sink/src/main.rs b/examples/benchmark/sink/src/main.rs index 94c2516b..49c207cd 100644 --- a/examples/benchmark/sink/src/main.rs +++ b/examples/benchmark/sink/src/main.rs @@ -30,14 +30,16 @@ fn main() -> eyre::Result<()> { } match input.id.as_str() { - "latency" => {} - "throughput" => { - if latency { - latency = false; - println!("Throughput:"); - } + "latency" if latency => {} + "throughput" if latency => { + latency = false; + println!("Throughput:"); + } + "throughput" => {} + other => { + eprintln!("Ignoring unexpected input `{other}`"); + continue; } - other => eprintln!("Ignoring unexpected input `{other}`"), } n += 1;