diff options
| author | Ashley Mannix <kodraus@hey.com> | 2021-01-06 10:04:05 +1000 |
|---|---|---|
| committer | Ashley Mannix <kodraus@hey.com> | 2021-01-06 10:44:06 +1000 |
| commit | db4585aa3b1ee56e4722710d7665ee011fc11145 (patch) | |
| tree | df39527b19724778422dc575ad70595068efc2e7 /library/std/src/lib.rs | |
| parent | da305a2b00530aa34dea4e48389204c26fa35dbb (diff) | |
| download | rust-db4585aa3b1ee56e4722710d7665ee011fc11145.tar.gz rust-db4585aa3b1ee56e4722710d7665ee011fc11145.zip | |
use Once instead of Mutex to manage capture resolution
This allows us to return borrows of the captured backtrace frames that are tied to a borrow of the Backtrace itself, instead of to some short-lived Mutex guard. It also makes it semantically clearer what synchronization is needed on the capture.
Diffstat (limited to 'library/std/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
