Checkpoint
This commit is contained in:
parent
83dae46ec6
commit
5b0e333967
16 changed files with 794 additions and 582 deletions
|
@ -35,10 +35,10 @@ pub use mac::*;
|
|||
#[cfg(any(test, feature = "test"))]
|
||||
pub use test::*;
|
||||
|
||||
// #[cfg(target_os = "macos")]
|
||||
// pub fn current() -> Rc<dyn Platform> {
|
||||
// MacPlatform
|
||||
// }
|
||||
#[cfg(target_os = "macos")]
|
||||
pub(crate) fn current_platform() -> Rc<dyn Platform> {
|
||||
Rc::new(MacPlatform::new())
|
||||
}
|
||||
|
||||
pub trait Platform {
|
||||
fn executor(&self) -> Rc<ForegroundExecutor>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue