diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-11 02:05:15 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-11 02:05:15 +0100 |
commit | a3edd482e9fc6b970df8cd024addd94b29f3f4e9 (patch) | |
tree | fceb4cb7e0f5981f6655b9823e67526805b438ae /crates/stdx | |
parent | 539659cde36af73eb7a3a0795bb71b0d66f7d7cd (diff) | |
parent | e7ba7f47a79a2881cf208ef9d944609e8fd4eec9 (diff) |
Merge #5305
5305: Profiling tweaks r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/stdx')
-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, |