diff options
author | Aleksey Kladov <[email protected]> | 2020-07-11 02:04:37 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-11 02:04:37 +0100 |
commit | e7ba7f47a79a2881cf208ef9d944609e8fd4eec9 (patch) | |
tree | fceb4cb7e0f5981f6655b9823e67526805b438ae /crates/stdx/src | |
parent | 539659cde36af73eb7a3a0795bb71b0d66f7d7cd (diff) |
Profiling tweaks
Diffstat (limited to 'crates/stdx/src')
-rw-r--r-- | crates/stdx/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
87 | Ok(()) | 87 | Ok(()) |
88 | } | 88 | } |
89 | } | 89 | } |
90 | |||
91 | #[must_use] | ||
90 | pub fn timeit(label: &'static str) -> impl Drop { | 92 | pub fn timeit(label: &'static str) -> impl Drop { |
91 | struct Guard { | 93 | struct Guard { |
92 | label: &'static str, | 94 | label: &'static str, |