Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 5009384c authored by Scallss's avatar Scallss
Browse files

Implement list_all_as_string function in Subscriber repository.

parent b5cd39cc
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,11 @@ 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.
Finish editing this message first!
Please register or to comment