From df49d4d079b22b8c0235bac4b6f00760c42a9593 Mon Sep 17 00:00:00 2001 From: szymon Date: Sun, 4 Oct 2026 15:34:06 +0200 Subject: [PATCH] fix: add missing errors section in context docs --- src/wrappers/context.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wrappers/context.rs b/src/wrappers/context.rs index ec15815..ea42d39 100644 --- a/src/wrappers/context.rs +++ b/src/wrappers/context.rs @@ -12,7 +12,7 @@ static IS_CONTEXT_CREATED: std::sync::atomic::AtomicBool = impl LibnotifyContext { /// Try initializing libnotify /// - /// # Error + /// # Errors /// Returns an error, if libnotify cannot be initialized or if there already exists a context /// object /// @@ -41,12 +41,19 @@ impl LibnotifyContext { } /// Sets global app name + /// # Errors + /// + /// This function can return LibnotifyError::NulError pub fn set_new_name(&self, app_name: &str) -> Result<(), LibnotifyError> { set_app_name(app_name)?; Ok(()) } /// Sets global app icon + /// + /// # Errors + /// + /// This function can return LibnotifyError::NulError pub fn set_app_icon(&self, app_icon: &str) -> Result<(), LibnotifyError> { set_app_icon(app_icon)?; Ok(())