From e7ba7f47a79a2881cf208ef9d944609e8fd4eec9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Jul 2020 03:04:37 +0200 Subject: Profiling tweaks --- crates/stdx/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/stdx') diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs index 08ac6f70f..3b605c79d 100644 --- a/crates/stdx/src/lib.rs +++ b/crates/stdx/src/lib.rs @@ -87,6 +87,8 @@ where Ok(()) } } + +#[must_use] pub fn timeit(label: &'static str) -> impl Drop { struct Guard { label: &'static str, -- cgit v1.2.3