Fix linux build
This commit is contained in:
@@ -21,7 +21,7 @@ fn initialize_logging() {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
use dbus::agent::DBusAgent;
|
||||
|
||||
// Start the D-Bus agent (events in, signals out).
|
||||
@@ -32,12 +32,12 @@ async fn start_ipc_agent(daemon: &Daemon) {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
// TODO: Implement macOS IPC agent.
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
||||
async fn start_ipc_agent(daemon: &Daemon) {
|
||||
async fn start_ipc_agent(daemon: &mut Daemon) {
|
||||
panic!("Unsupported IPC platform");
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ async fn main() {
|
||||
.unwrap();
|
||||
|
||||
// Start the IPC agent.
|
||||
start_ipc_agent(&daemon).await;
|
||||
start_ipc_agent(&mut daemon).await;
|
||||
|
||||
// Run the main daemon loop.
|
||||
daemon.run().await;
|
||||
|
||||
Reference in New Issue
Block a user