Remove borrow from reveal_path()

This commit is contained in:
Mikayla Maki
2023-02-23 21:36:17 -08:00
parent be86cb35ba
commit 89ddf14b0e
3 changed files with 12 additions and 25 deletions
+2 -6
View File
@@ -23,16 +23,12 @@ pub use renderer::Surface;
use std::{ops::Range, rc::Rc, sync::Arc};
use window::Window;
use crate::executor;
pub(crate) fn platform() -> Arc<dyn super::Platform> {
Arc::new(MacPlatform::new())
}
pub(crate) fn foreground_platform(
foreground: Rc<executor::Foreground>,
) -> Rc<dyn super::ForegroundPlatform> {
Rc::new(MacForegroundPlatform::new(foreground))
pub(crate) fn foreground_platform() -> Rc<dyn super::ForegroundPlatform> {
Rc::new(MacForegroundPlatform::new())
}
trait BoolExt {