mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Fix newer Clippy warnings for 1.67.0 (#33)
This commit is contained in:
parent
fd72cf5c4e
commit
3629f15e0d
8 changed files with 33 additions and 28 deletions
|
@ -134,7 +134,7 @@ impl MessageTimeStamp {
|
|||
match self {
|
||||
MessageTimeStamp::OriginServer(ms) => {
|
||||
let time = millis_to_datetime(*ms).format("%T");
|
||||
let time = format!(" [{}]", time);
|
||||
let time = format!(" [{time}]");
|
||||
|
||||
Span::raw(time).into()
|
||||
},
|
||||
|
@ -343,7 +343,7 @@ impl MessageEvent {
|
|||
.and_then(|r| r.content.reason.as_ref());
|
||||
|
||||
if let Some(r) = reason {
|
||||
Cow::Owned(format!("[Redacted: {:?}]", r))
|
||||
Cow::Owned(format!("[Redacted: {r:?}]"))
|
||||
} else {
|
||||
Cow::Borrowed("[Redacted]")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue