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

@@ -1,7 +1,7 @@
use libnotify_rs::functions::{self, uninit};
fn main() -> Result<(), Box<dyn std::error::Error>> {
functions::init("Morbius");
functions::init("Morbius")?;
if let Some(caps) = functions::get_server_caps() {
println!("=== Server caps ===");