diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-06-06 13:45:02 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-06-06 13:49:23 +0200 |
| commit | acc3ab4e65cfe4c11156ba7b6be0a33625e7626b (patch) | |
| tree | d55cec960939558db3ffc42cbde223bd74af38cb /library/std/src/sys/itron | |
| parent | e70c60d34b9783a2fd3171d88d248c2e0ec8ecdd (diff) | |
| download | rust-acc3ab4e65cfe4c11156ba7b6be0a33625e7626b.tar.gz rust-acc3ab4e65cfe4c11156ba7b6be0a33625e7626b.zip | |
Make all {Mutex, Condvar, RwLock}::new #[inline].
Diffstat (limited to 'library/std/src/sys/itron')
| -rw-r--r-- | library/std/src/sys/itron/mutex.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/itron/mutex.rs b/library/std/src/sys/itron/mutex.rs index 2ba8454ff92..715e94c3b3d 100644 --- a/library/std/src/sys/itron/mutex.rs +++ b/library/std/src/sys/itron/mutex.rs @@ -26,6 +26,7 @@ fn new_mtx() -> Result<abi::ID, ItronError> { } impl Mutex { + #[inline] pub const fn new() -> Mutex { Mutex { mtx: SpinIdOnceCell::new() } } |
