Skip to content

Commit

Permalink
Make sure android requires std
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Mar 24, 2023
1 parent 5918bf1 commit 41f8480
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
//!
//! These should be 100% safe to pass around and use, no possibility of dangling or invalidity.
#[cfg(all(not(feature = "std"), target_os = "android"))]
compile_error!("Using borrowed handles on Android requires the `std` feature to be enabled.");

use core::fmt;
use core::hash::{Hash, Hasher};
use core::marker::PhantomData;
Expand Down Expand Up @@ -310,7 +313,6 @@ mod imp {
mod imp {
//! We need to refcount the handles, so we use an `RwLock` to do so.
extern crate std;
use std::sync::{RwLock, RwLockReadGuard};

pub(super) struct Active {
Expand Down

0 comments on commit 41f8480

Please sign in to comment.