Fix newer Clippy warnings for 1.67.0 (#33)

This commit is contained in:
Ulyssa 2023-01-30 13:51:32 -08:00
parent fd72cf5c4e
commit 3629f15e0d
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
8 changed files with 33 additions and 28 deletions

View file

@ -168,7 +168,7 @@ fn append_tags<'a>(tags: &'a Tags, spans: &mut Vec<Span<'a>>, style: Style) {
spans.push(Span::styled("User Tag: ", style));
spans.push(Span::styled(tag.as_ref(), style));
},
tag => spans.push(Span::styled(format!("{:?}", tag), style)),
tag => spans.push(Span::styled(format!("{tag:?}"), style)),
}
}
@ -594,7 +594,7 @@ impl Window<IambInfo> for IambWindow {
}
fn posn(index: usize, _: &mut ProgramStore) -> IambResult<Self> {
let msg = format!("Cannot find indexed buffer (index = {})", index);
let msg = format!("Cannot find indexed buffer (index = {index})");
let err = UIError::Unimplemented(msg);
Err(err)
@ -852,7 +852,7 @@ impl VerifyItem {
let device = self.sasv1.other_device();
if let Some(display_name) = device.display_name() {
format!("Device verification with {} ({})", display_name, state)
format!("Device verification with {display_name} ({state})")
} else {
format!("Device verification with device {} ({})", device.device_id(), state)
}
@ -958,7 +958,7 @@ impl ListItem<IambInfo> for VerifyItem {
lines.push(Spans::from(""));
for line in format_emojis(emoji).lines() {
lines.push(Spans::from(format!(" {}", line)));
lines.push(Spans::from(format!(" {line}")));
}
lines.push(Spans::from(""));