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

View file

@ -191,7 +191,7 @@ impl App {
pub fn new(asset_source: impl AssetSource) -> Result<Self> {
let platform = platform::current::platform();
let foreground = Rc::new(executor::Foreground::platform(platform.dispatcher())?);
let foreground_platform = platform::current::foreground_platform(foreground.clone());
let foreground_platform = platform::current::foreground_platform();
let app = Self(Rc::new(RefCell::new(MutableAppContext::new(
foreground,
Arc::new(executor::Background::new()),