From 4ea156fa6059333cbeb217e616b57e3a42934777 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Sun, 6 Aug 2023 22:12:46 +0200 Subject: [PATCH] clippy fix --- examples/timestamp-queries/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/timestamp-queries/src/main.rs b/examples/timestamp-queries/src/main.rs index 117bcf5f3e..0bdd15e47d 100644 --- a/examples/timestamp-queries/src/main.rs +++ b/examples/timestamp-queries/src/main.rs @@ -60,9 +60,9 @@ impl QueryResults { let mut encoder_timestamps = [0, 0]; encoder_timestamps[0] = get_next_slot(); let render_start_end_timestamps = [get_next_slot(), get_next_slot()]; - let render_inside_timestamp = timestamps_inside_passes.then(|| get_next_slot()); + let render_inside_timestamp = timestamps_inside_passes.then(get_next_slot); let compute_start_end_timestamps = [get_next_slot(), get_next_slot()]; - let compute_inside_timestamp = timestamps_inside_passes.then(|| get_next_slot()); + let compute_inside_timestamp = timestamps_inside_passes.then(get_next_slot); encoder_timestamps[1] = get_next_slot(); QueryResults {