We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580d676 commit cc36fb5Copy full SHA for cc36fb5
zephyr/src/sync/mutex.rs
@@ -6,6 +6,7 @@
6
7
use core::{
8
cell::UnsafeCell,
9
+ convert::Infallible,
10
fmt,
11
marker::PhantomData,
12
ops::{Deref, DerefMut},
@@ -15,7 +16,7 @@ use crate::sys::sync as sys;
15
16
use crate::time::{Forever, NoWait};
17
18
/// Until poisoning is implemented, mutexes never return an error, and we just get back the guard.
-pub type LockResult<Guard> = Result<Guard, ()>;
19
+pub type LockResult<Guard> = Result<Guard, Infallible>;
20
21
/// The return type from [`Mutex::try_lock`].
22
///
0 commit comments