feat: change init function to return an error

This commit is contained in:
2026-09-30 16:59:05 +02:00
parent 80b3da418b
commit 06714444bc
3 changed files with 28 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ use libnotify_rs::{
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
init("I love coffee");
init("I love coffee")?;
let mut notify = Notification::new(
"Remember to drink coffe!",
"Coffee is very important for your mental health!",