Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Nov 26, 2024
1 parent 975a0e6 commit ba85a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions examples/select_file_with_information_view/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ impl MyApp {
egui::ScrollArea::vertical()
.max_height(150.0)
.show(ui, |ui| {
ui.add(
egui::TextEdit::multiline(&mut content).code_editor(),
);
ui.add(egui::TextEdit::multiline(&mut content).code_editor());
});
}
})
Expand Down
8 changes: 2 additions & 6 deletions src/data/information_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ impl Default for InformationPanel {
egui::ScrollArea::vertical()
.max_height(100.0)
.show(ui, |ui| {
ui.add(
egui::TextEdit::multiline(&mut content).code_editor(),
);
ui.add(egui::TextEdit::multiline(&mut content).code_editor());
});
}
}) as Box<dyn FnMut(&mut Ui, &DirectoryEntry)>,
Expand Down Expand Up @@ -236,9 +234,7 @@ impl InformationPanel {
egui::ScrollArea::vertical()
.max_height(100.0)
.show(ui, |ui| {
ui.add(
egui::TextEdit::multiline(&mut content).code_editor(),
);
ui.add(egui::TextEdit::multiline(&mut content).code_editor());
});
} else {
// if now preview is available, show icon
Expand Down

0 comments on commit ba85a77

Please sign in to comment.