From a5cc649a1ac77bfb1445adc23d02f904514d0d6d Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 11 Aug 2024 00:53:10 +0859 Subject: [PATCH] chore: code tidy --- notification_iced/src/lib.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/notification_iced/src/lib.rs b/notification_iced/src/lib.rs index e531dc5..a98eb7e 100644 --- a/notification_iced/src/lib.rs +++ b/notification_iced/src/lib.rs @@ -21,13 +21,11 @@ //! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces, use zbus::{interface, object_server::SignalContext, zvariant::OwnedValue}; -use futures::{channel::mpsc::Sender, never::Never}; +use futures::channel::mpsc::Sender; use zbus::ConnectionBuilder; use zbus::zvariant::{SerializeDict, Type}; -use std::future::pending; - pub const NOTIFICATION_DELETED_BY_EXPIRED: u32 = 1; pub const NOTIFICATION_DELETED_BY_USER: u32 = 2; @@ -218,15 +216,3 @@ pub async fn start_connection + Send + 'static>( .build() .await } - -pub async fn start_server + Send + 'static>( - sender: Sender, - capabilities: Vec, - version: VersionInfo, -) -> Never { - let _conn = start_connection(sender, capabilities, version).await; - - pending::<()>().await; - - unreachable!() -}