Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit c50e6171 authored by TheoKevH's avatar TheoKevH
Browse files

Implement list_all_as_string function in Subscriber repository

parent 7e6ee766
Branches
No related tags found
No related merge requests found
......@@ -17,4 +17,9 @@ impl NotificationRepository {
.push(notification.clone());
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