@@ -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()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user