diff --git a/rust/agama-dbus-server/src/locale.rs b/rust/agama-dbus-server/src/locale.rs index 8c231fb569..843b6ef5b7 100644 --- a/rust/agama-dbus-server/src/locale.rs +++ b/rust/agama-dbus-server/src/locale.rs @@ -2,7 +2,7 @@ use crate::error::Error; use agama_lib::connection_to; use anyhow::Context; use std::process::Command; -use zbus::dbus_interface; +use zbus::{dbus_interface, Connection}; pub struct Locale { locales: Vec, @@ -187,7 +187,7 @@ impl Locale { } } -pub async fn start_service(address: &str) -> Result<(), Box> { +pub async fn start_service(address: &str) -> Result> { const SERVICE_NAME: &str = "org.opensuse.Agama.Locale1"; const SERVICE_PATH: &str = "/org/opensuse/Agama/Locale1"; @@ -203,5 +203,5 @@ pub async fn start_service(address: &str) -> Result<(), Box Result<(), Box> { // When adding more services here, the order might be important. crate::questions::start_service(ADDRESS).await?; - crate::locale::start_service(ADDRESS).await?; + let _conn = crate::locale::start_service(ADDRESS).await?; NetworkService::start(ADDRESS).await?; // Do other things or go to wait forever