From b9b4a708013ce5889e7b1b5a3444760e6387db52 Mon Sep 17 00:00:00 2001 From: Laurent Pelecq Date: Fri, 18 Mar 2022 19:13:45 +0100 Subject: [PATCH] Fix examples --- examples/async_mio_loop.rs | 2 +- examples/notifications.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/async_mio_loop.rs b/examples/async_mio_loop.rs index 4bab6bf..9945f0e 100644 --- a/examples/async_mio_loop.rs +++ b/examples/async_mio_loop.rs @@ -59,7 +59,7 @@ fn main() -> ClientResult<()> { 1 => { if let Some(ch) = text.chars().next() { println!("sending char: {}", ch); - ssip_client.push(Request::SendChar(ch)) + ssip_client.push(Request::SpeakChar(ch)) } } _ => { diff --git a/examples/notifications.rs b/examples/notifications.rs index 2f5c8c5..cbe07fd 100644 --- a/examples/notifications.rs +++ b/examples/notifications.rs @@ -11,7 +11,7 @@ fn main() -> ClientResult<()> { .check_client_name_set()?; // Enabling notifications client - .enable_notification(NotificationType::All)? + .set_notification(NotificationType::All, true)? .check_status(OK_NOTIFICATION_SET)?; // Sending message let msg_id = client