Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/histogram: Drop collect lock guard explicitly
Rusts drop semantics can be confusing sometimes. E.g. `let _ = l.lock()` would drop the lock guard immediately whereas `let _guard = l.lock()` would drop the guard in LIFO order at the end of the current scope. Instead of relying on the above guarantee with `let _guard`, drop the mutex guard explicitely hopefully making this less error prone in the future. Signed-off-by: Max Inden <mail@max-inden.de>
- Loading branch information