Rename PlatformLifecycle to MainThreadPlatform

Don't love it, but at least it's accurate.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-06-07 17:21:34 -06:00
co-authored by Max Brunsfeld
parent 14b519f78d
commit 7b98994d1f
5 changed files with 46 additions and 46 deletions
+3 -3
View File
@@ -11,12 +11,12 @@ mod window;
use cocoa::base::{BOOL, NO, YES};
pub use dispatcher::Dispatcher;
pub use fonts::FontSystem;
use platform::{MacLifecycle, MacPlatform};
use platform::{MacMainThreadPlatform, MacPlatform};
use std::rc::Rc;
use window::Window;
pub(crate) fn lifecycle() -> Rc<dyn super::Lifecycle> {
Rc::new(MacLifecycle::default())
pub(crate) fn main_thread_platform() -> Rc<dyn super::MainThreadPlatform> {
Rc::new(MacMainThreadPlatform::default())
}
pub(crate) fn platform() -> Rc<dyn super::Platform> {