Skip to content

Commit 73e0e96

Browse files
committed
fixes
1 parent 379f7c0 commit 73e0e96

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/platform/macos/window.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ impl WindowHandle {
8383
Ok(Self { mtm, state, view: Weak::from_retained(&view), _window: Some(window) })
8484
}
8585

86-
pub fn run_until_closed(self) {
86+
pub fn run_until_closed(self) -> Result<()> {
8787
NSApplication::sharedApplication(self.mtm).run();
88+
Ok(())
8889
}
8990

9091
pub fn is_open(&self) -> bool {

src/platform/win/window.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ pub struct WindowHandle {
5757
}
5858

5959
impl WindowHandle {
60-
pub fn run_until_closed(self) {
61-
run_thread_message_loop_until(|| !self.is_open()).unwrap();
60+
pub fn run_until_closed(self) -> Result<()> {
61+
run_thread_message_loop_until(|| !self.is_open())?;
62+
Ok(())
6263
}
6364

6465
pub fn is_open(&self) -> bool {

src/tracing.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#[cfg(feature = "tracing")]
2+
#[allow(unused)]
23
pub use tracing::{error, warn};
34

45
#[cfg(not(feature = "tracing"))]
6+
#[allow(unused)]
57
mod tracing_impl {
68
macro_rules! __warn {
79
($($f:tt)*) => {

0 commit comments

Comments
 (0)