Skip to content

Commit 616ee6b

Browse files
ids1024jackpot51
authored andcommitted
fix: Compile on non-Linux platform
1 parent 0b995b7 commit 616ee6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/application/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ fn with_daemon<F: Fn(Rc<dyn Daemon>)>(f: F) {
104104
}
105105

106106
#[cfg(not(target_os = "linux"))]
107-
fn with_daemon<F: Fn(Box<dyn Daemon>)>(f: F) {
107+
fn with_daemon<F: Fn(Rc<dyn Daemon>)>(f: F) {
108108
let server = daemon_server().expect("Failed to create server");
109-
f(Box::new(server));
109+
f(Rc::new(server));
110110
}
111111

112112
#[cfg(target_os = "macos")]
@@ -168,4 +168,4 @@ pub fn run(args: Vec<String>) -> i32 {
168168
});
169169

170170
application.run(&args)
171-
}
171+
}

0 commit comments

Comments
 (0)