Fix most clippy warnigs (#501)

This commit is contained in:
vaw
2025-09-13 20:32:25 +00:00
committed by GitHub
parent 7b1dc93f3a
commit d5c330ac72
5 changed files with 42 additions and 18 deletions

View File

@@ -233,13 +233,13 @@ impl MessageTimeStamp {
dt1.date_naive() == dt2.date_naive()
}
fn show_date(&self) -> Option<Span> {
fn show_date(&self) -> Option<Span<'_>> {
let time = self.as_datetime().format("%A, %B %d %Y").to_string();
Span::styled(time, BOLD_STYLE).into()
}
fn show_time(&self) -> Option<Span> {
fn show_time(&self) -> Option<Span<'_>> {
match self {
MessageTimeStamp::OriginServer(ms) => {
let time = millis_to_datetime(*ms).format("%T");