Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit bad515d

Browse files
committed
Fixed formatting.
1 parent 74abc48 commit bad515d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

view_library/src/ui/file_view.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl FileView {
140140
filter: String::new(),
141141
auto_scroll_enabled: true,
142142
scroll_speed: 1,
143-
upgrade_version: None
143+
upgrade_version: None,
144144
}
145145
}
146146

@@ -176,7 +176,7 @@ impl FileView {
176176
}
177177
if let Some(ver) = &self.upgrade_version {
178178
ui.hyperlink_to(
179-
fl!(crate::LANGUAGE_LOADER, "menu-upgrade_version", version=ver.clone()),
179+
fl!(crate::LANGUAGE_LOADER, "menu-upgrade_version", version = ver.clone()),
180180
"https://github.com/mkrueger/icy_view/releases/latest",
181181
);
182182
}
@@ -313,11 +313,8 @@ impl FileView {
313313
let font_id = FontId::new(14.0, FontFamily::Proportional);
314314
let text: WidgetText = label.into();
315315
let galley = text.into_galley(ui, Some(false), f32::INFINITY, font_id);
316-
ui.painter().galley_with_override_text_color(
317-
egui::Align2::LEFT_TOP.align_size_within_rect(galley.size(), rect).min,
318-
galley,
319-
text_color,
320-
);
316+
ui.painter()
317+
.galley_with_override_text_color(egui::Align2::LEFT_TOP.align_size_within_rect(galley.size(), rect).min, galley, text_color);
321318
if response.hovered() {
322319
entry.load_sauce();
323320
if let Some(sauce) = &entry.sauce {

0 commit comments

Comments
 (0)