Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 0d25ca09 authored by noQils's avatar noQils
Browse files

Implement list_all_as_string function in Notification repository.

parent d776d15a
No related branches found
No related tags found
No related merge requests found
......@@ -18,4 +18,9 @@ impl NotificationRepository {
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