Use unwrap() in format()

This commit is contained in:
Felicio Mununga 2022-12-01 16:06:37 +01:00 committed by GitHub
parent cc2268fc4a
commit 3d2eb4b04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,7 @@ fn ui<B: Backend>(f: &mut Frame<B>, app: &App) {
.map(|message| {
let content = vec![Spans::from(Span::raw(format!(
"[{} - {}]: {}",
message.timestamp().format("%d-%m-%y %H:%M"),
message.timestamp().unwrap().format("%d-%m-%y %H:%M"),
message.nick(),
message.message()
)))];