first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -3,14 +3,11 @@
|
||||
#[cfg_attr(noop, path = "noop.rs")]
|
||||
mod imp;
|
||||
|
||||
use std::{
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
use pin_project::pin_project;
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
pub use imp::Guard;
|
||||
use pin_project::pin_project;
|
||||
|
||||
/// Returns a guard that prevents the system from going to sleep while the guard is held.
|
||||
///
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use objc2::{rc::Retained, runtime::ProtocolObject};
|
||||
use objc2::rc::Retained;
|
||||
use objc2::runtime::ProtocolObject;
|
||||
use objc2_foundation::{NSActivityOptions, NSObjectProtocol, NSProcessInfo, NSString};
|
||||
|
||||
/// A guard object that prevents system sleep while it remains in scope.
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
use std::{
|
||||
sync::{LazyLock, Once, mpsc},
|
||||
thread::JoinHandle,
|
||||
};
|
||||
use std::sync::{LazyLock, Once, mpsc};
|
||||
use std::thread::JoinHandle;
|
||||
|
||||
use itertools::Itertools as _;
|
||||
use parking_lot::Mutex;
|
||||
|
||||
Reference in New Issue
Block a user