Cosmetics

This commit is contained in:
2017-07-09 14:25:30 +02:00
parent 95263c33f8
commit 73eb0cc68d
2 changed files with 44 additions and 33 deletions

View File

@@ -4,7 +4,8 @@ fn main() {
// Create a libnotify context
let notify = libnotify::Context::new("myapp").unwrap();
// Create a new notification and show it
let n = notify.new_notification("Summary", Some("Optional Body"), None).unwrap();
let n = notify.new_notification("Summary", Some("Optional Body"), None)
.unwrap();
n.show().unwrap();
// You can also use the .show() convenience method on the context
notify.show("I am another notification", None, None).unwrap();