Skip to content

Commit

Permalink
chore: Remove wildcard include of crate::platform
Browse files Browse the repository at this point in the history
This fixes the build error on non-macOS platforms.
  • Loading branch information
usadson committed Jan 27, 2024
1 parent efe62a0 commit d3a7d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions finestra/src/app/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (C) 2024 Tristan Gerritsen <tristan@thewoosh.org>
// All Rights Reserved.

use crate::{macos, View, WindowConfiguration};
use crate::{View, WindowConfiguration};

/// This is the main entrypoint to the framework.
///
Expand All @@ -28,7 +28,7 @@ impl<Delegate> App<Delegate>

pub fn run(self) -> ! {
#[cfg(target_os = "macos")]
{ macos::run_app(self) }
{ crate::platform::macos::run_app(self) }

#[cfg(not(target_os = "macos"))]
{ panic!("Invalid platform") }
Expand Down
1 change: 0 additions & 1 deletion finestra/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ mod window;

pub use self::app::*;
pub use self::error::*;
pub(crate) use self::platform::*;
pub use self::views::*;
pub use self::window::*;

0 comments on commit d3a7d9e

Please sign in to comment.