diff --git a/src/formats/serde.rs b/src/formats/serde.rs index 3a2d9ff..da73200 100644 --- a/src/formats/serde.rs +++ b/src/formats/serde.rs @@ -4,10 +4,7 @@ use std::collections::HashMap; use std::hash::BuildHasher; use zvariant::OwnedValue; */ -pub fn serialize_actions( - actions: &[String], // Changed to a slice - serializer: S, -) -> Result +pub fn serialize_actions(actions: &[String], serializer: S) -> Result where S: Serializer, { @@ -22,6 +19,7 @@ where map.serialize(serializer) } + /* pub fn serialize_hints( hints: &HashMap, diff --git a/src/notification.rs b/src/notification.rs index e734e5e..7b632b0 100644 --- a/src/notification.rs +++ b/src/notification.rs @@ -50,7 +50,7 @@ impl Notification { } // Key:Val pairs of actions - pub fn actions(&self) -> Vec<(String, String)> { + /*pub fn actions(&self) -> Vec<(String, String)> { let mut actions: Vec<(String, String)> = vec![]; let acts = &self.actions; let act_len = acts.len(); @@ -68,13 +68,13 @@ impl Notification { } actions } - /* + */ pub fn actions(&self) -> Vec<(String, String)> { self.actions .chunks(2) .map(|chunk| (chunk[0].clone(), chunk[1].clone())) .collect() - } */ + } // Hints pub fn hints(&self) -> &HashMap {