Skip to content

Commit db54f2c

Browse files
committed
Use imported last_os_error
1 parent 53110ab commit db54f2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/linux_android_with_fallback.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ fn futex_wait() {
9191
debug_assert!({
9292
match ret {
9393
0 => true,
94-
-1 => {
95-
let err = crate::util_libc::last_os_error();
96-
err.raw_os_error() == Some(libc::EAGAIN)
97-
}
94+
-1 => last_os_error().raw_os_error() == Some(libc::EAGAIN),
9895
_ => false,
9996
}
10097
});
@@ -158,7 +155,7 @@ fn wait_until_rng_ready() -> Result<(), Error> {
158155
debug_assert_eq!(res, 1);
159156
break Ok(());
160157
}
161-
let err = crate::util_libc::last_os_error();
158+
let err = last_os_error();
162159
match err.raw_os_error() {
163160
Some(libc::EINTR) | Some(libc::EAGAIN) => continue,
164161
_ => break Err(err),

0 commit comments

Comments
 (0)