clippy fixes

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-17 13:49:53 -07:00
parent a4c1b38116
commit 8a1398face
26 changed files with 51 additions and 62 deletions

View File

@@ -169,7 +169,7 @@ fn parse_img_response(
let dyn_image = image::load_from_memory(&response.bytes)?;
Ok(process_pfp_bitmap(imgtyp, dyn_image))
} else {
Err(format!("Expected image, found content-type {:?}", content_type).into())
Err(format!("Expected image, found content-type {content_type:?}").into())
}
}
@@ -328,7 +328,7 @@ fn generate_animation_frame(
TextureFrame {
delay,
texture: ctx.load_texture(format!("{}{}", url, index), color_img, Default::default()),
texture: ctx.load_texture(format!("{url}{index}"), color_img, Default::default()),
}
}

View File

@@ -69,7 +69,7 @@ fn render_client(ui: &mut egui::Ui, note_cache: &mut NoteCache, note: &Note) {
match cached_note.client.as_deref() {
Some(client) if !client.is_empty() => {
ui.horizontal(|ui| {
secondary_label(ui, format!("via {}", client));
secondary_label(ui, format!("via {client}"));
});
}
_ => return,

View File

@@ -31,7 +31,7 @@ pub fn display_name_widget<'a>(
let username_resp = name.username.map(|username| {
ui.add(
Label::new(
RichText::new(format!("@{}", username))
RichText::new(format!("@{username}"))
.size(16.0)
.color(crate::colors::MID_GRAY),
)