chore: Remove unused modules and update metadata.rs (#199)

This commit is contained in:
XIAO YU
2024-05-31 14:53:35 +09:00
committed by GitHub
parent 921cf871ee
commit c682a58842
4 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
use nostr_sdk::Event;
pub fn get_latest_event(events: &[Event]) -> Option<&Event> {
events.iter().max_by_key(|event| event.created_at())
}