From b8679141a020abee7be813e0d9bfa7194e464779 Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Thu, 16 Sep 2021 18:08:39 -0600 Subject: [PATCH] wires up notifications --- appmgr/src/lib.rs | 1 + appmgr/src/notifications.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appmgr/src/lib.rs b/appmgr/src/lib.rs index 95cc998ec..24119481f 100644 --- a/appmgr/src/lib.rs +++ b/appmgr/src/lib.rs @@ -66,6 +66,7 @@ pub fn echo(#[arg] message: String) -> Result { ssh::ssh, net::wifi::wifi, disk::disk, + notifications::notification, ))] pub fn main_api() -> Result<(), RpcError> { Ok(()) diff --git a/appmgr/src/notifications.rs b/appmgr/src/notifications.rs index a6b8d69d6..5af24a1de 100644 --- a/appmgr/src/notifications.rs +++ b/appmgr/src/notifications.rs @@ -14,7 +14,7 @@ use crate::util::{display_none, display_serializable}; use crate::{Error, ErrorKind}; #[command(subcommands(list, delete, delete_before))] -pub async fn notification(#[context] _ctx: RpcContext) -> Result<(), Error> { +pub async fn notification() -> Result<(), Error> { Ok(()) }