Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoDios committed Aug 31, 2024
1 parent dabceec commit 4d53d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Database for MemoryDB {
}

fn fetch_last_100(&mut self) -> std::io::Result<Vec<TelemetryData>> {
let data : Vec<TelemetryData> = self.records.iter().map(|(_id,rec) | rec.clone()).collect();
let data : Vec<TelemetryData> = self.records.values().cloned().collect();
Ok(data)
}
}

0 comments on commit 4d53d28

Please sign in to comment.