Skip to content

Commit 029d468

Browse files
committed
style: Reformat code for consistency
1 parent 7ecdc15 commit 029d468

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

crates/gui/src/ui/views/cores_tab/rows.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ pub(super) fn installed_core_row(
4444
.max(80.0);
4545

4646
ui.add_sized([version_width, ui.available_height()], egui::Label::new(version));
47-
ui.add_sized(
48-
[hash_width, ui.available_height()],
49-
egui::Label::new(hash).truncate(),
50-
)
51-
.on_hover_text(hash);
47+
ui.add_sized([hash_width, ui.available_height()], egui::Label::new(hash).truncate())
48+
.on_hover_text(hash);
5249

5350
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
5451
// First button slot: create instance OR redownload/progress

crates/gui/src/ui/views/instances_tab/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ pub fn render(
203203
});
204204
// Strip characters forbidden in paths on Windows/Linux/macOS
205205
form.name.retain(|c: char| {
206-
!c.is_control() && !matches!(c, '<' | '>' | ':' | '"' | '/' | '\\' | '|' | '?' | '*')
206+
!c.is_control()
207+
&& !matches!(c, '<' | '>' | ':' | '"' | '/' | '\\' | '|' | '?' | '*')
207208
});
208209

209210
form_row(ui, lang::t("form.description", lang), &mut form.description);

0 commit comments

Comments
 (0)