diff options
| author | Curly <[email protected]> | 2025-08-19 22:30:53 -0700 |
|---|---|---|
| committer | Curly <[email protected]> | 2025-08-19 22:36:49 -0700 |
| commit | 368738bef44dbba1a178383d878a6d9423b1ccd9 (patch) | |
| tree | 4c375e7ec4615e6dee9fda837584067d19b7caf6 /embassy-sync/src/blocking_mutex/mod.rs | |
| parent | a5cb04bdab602bc3bd056d254a9d61cad55bd967 (diff) | |
chore: add more `Debug` impls to `embassy-sync`, particularly on `OnceLock`
All tests green
Diffstat (limited to 'embassy-sync/src/blocking_mutex/mod.rs')
| -rw-r--r-- | embassy-sync/src/blocking_mutex/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-sync/src/blocking_mutex/mod.rs b/embassy-sync/src/blocking_mutex/mod.rs index a41bc3569..11809c763 100644 --- a/embassy-sync/src/blocking_mutex/mod.rs +++ b/embassy-sync/src/blocking_mutex/mod.rs | |||
| @@ -22,6 +22,7 @@ use self::raw::RawMutex; | |||
| 22 | /// | 22 | /// |
| 23 | /// In all cases, the blocking mutex is intended to be short lived and not held across await points. | 23 | /// In all cases, the blocking mutex is intended to be short lived and not held across await points. |
| 24 | /// Use the async [`Mutex`](crate::mutex::Mutex) if you need a lock that is held across await points. | 24 | /// Use the async [`Mutex`](crate::mutex::Mutex) if you need a lock that is held across await points. |
| 25 | #[derive(Debug)] | ||
| 25 | pub struct Mutex<R, T: ?Sized> { | 26 | pub struct Mutex<R, T: ?Sized> { |
| 26 | // NOTE: `raw` must be FIRST, so when using ThreadModeMutex the "can't drop in non-thread-mode" gets | 27 | // NOTE: `raw` must be FIRST, so when using ThreadModeMutex the "can't drop in non-thread-mode" gets |
| 27 | // to run BEFORE dropping `data`. | 28 | // to run BEFORE dropping `data`. |
