Skip to content

Commit

Permalink
chore: code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 10, 2024
1 parent b32fb38 commit a5cc649
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions notification_iced/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -218,15 +216,3 @@ pub async fn start_connection<T: From<NotifyMessage> + Send + 'static>(
.build()
.await
}

pub async fn start_server<T: From<NotifyMessage> + Send + 'static>(
sender: Sender<T>,
capabilities: Vec<String>,
version: VersionInfo,
) -> Never {
let _conn = start_connection(sender, capabilities, version).await;

pending::<()>().await;

unreachable!()
}

0 comments on commit a5cc649

Please sign in to comment.