daily commit

This commit is contained in:
Candifloss 2024-08-21 02:32:06 +05:30
parent 0b44b949ab
commit 21bb5f2ebb

View File

@ -1,5 +1,6 @@
use std::collections::HashMap;
use std::fmt;
use zbus_notification::NotifyUnit;
// Structure of a notification
struct Notif {
@ -68,8 +69,10 @@ fn main() {
.insert("urgency".to_string(), "critical".to_string());
not.hints
.insert("category".to_string(), "network.error".to_string());
// End of eg. notif
truncate_summary(&mut not); //Limit the summary length
println!("{not}");
}