Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit af8a7d3a authored by Ida Made Revindra Dikta Mahendra's avatar Ida Made Revindra Dikta Mahendra
Browse files

[CHORE]: Implement list_all_as_string function in Notification repository

parent 540cc291
No related merge requests found
...@@ -17,4 +17,9 @@ impl NotificationRepository { ...@@ -17,4 +17,9 @@ impl NotificationRepository {
.push(notification.clone()); .push(notification.clone());
return notification; return notification;
} }
pub fn list_all_as_string() -> Vec<String> {
return NOTIFICATIONS.read().unwrap()
.iter().map(|f| format!("{}", f.clone())).collect();
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment