fork to do stuff

removed use of unwrap and unused PartialEq

+4 -6
+4 -6
src/tui.rs
··· 21 21 22 22 use crate::client::AtProtoClient; 23 23 24 - #[derive(Debug, Clone, PartialEq)] 24 + #[derive(Debug, Clone)] 25 25 pub struct Message { 26 26 pub handle: String, 27 27 pub content: String, ··· 263 263 "you".to_string(), 264 264 message, 265 265 true, 266 - Some( 267 - DateTime::parse_from_rfc3339(&t) 268 - .unwrap() 269 - .with_timezone(&Utc), 270 - ), 266 + DateTime::parse_from_rfc3339(&t) 267 + .map(|dt| dt.with_timezone(&Utc)) 268 + .ok(), // Parse RFC3339 → UTC, None if invalid (so current timestamp instead) 271 269 )); 272 270 } 273 271 Err(e) => {