tangled
alpha
login
or
join now
rubberducky.guru
/
thought-stream-cli
forked from
cameron.stream/thought-stream-cli
0
fork
atom
fork to do stuff
0
fork
atom
overview
issues
pulls
pipelines
removed use of unwrap and unused PartialEq
azom.dev
6 months ago
7dc34616
03879581
+4
-6
1 changed file
expand all
collapse all
unified
split
src
tui.rs
+4
-6
src/tui.rs
···
21
21
22
22
use crate::client::AtProtoClient;
23
23
24
24
-
#[derive(Debug, Clone, PartialEq)]
24
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
266
-
Some(
267
267
-
DateTime::parse_from_rfc3339(&t)
268
268
-
.unwrap()
269
269
-
.with_timezone(&Utc),
270
270
-
),
266
266
+
DateTime::parse_from_rfc3339(&t)
267
267
+
.map(|dt| dt.with_timezone(&Utc))
268
268
+
.ok(), // Parse RFC3339 → UTC, None if invalid (so current timestamp instead)
271
269
));
272
270
}
273
271
Err(e) => {