Skip to content

Commit 3a3302c

Browse files
committed
fix clippy issues
1 parent a07de98 commit 3a3302c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/file_dialog.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl FileDialog {
10881088
if self.config.as_modal {
10891089
self.create_modal().show(ctx, |ui| {
10901090
self.fake_title_bar(ui, &mut is_open);
1091-
self.ui_inner(ui, right_panel_fn)
1091+
self.ui_inner(ui, right_panel_fn);
10921092
});
10931093
} else {
10941094
self.create_window(&mut is_open)
@@ -1280,7 +1280,7 @@ impl FileDialog {
12801280
}
12811281

12821282
if let Some(pos) = self.config.default_pos {
1283-
area = area.default_pos(pos)
1283+
area = area.default_pos(pos);
12841284
}
12851285

12861286
Modal::new(self.window_id)
@@ -1325,8 +1325,8 @@ impl FileDialog {
13251325
// The close button is taken from egui/src/containers/window.rs and modified to work here.
13261326
let actual_frame_rect = Rect {
13271327
min: frame_response.rect.min
1328-
- Vec2::new(window_margins.left as f32, window_margins.top as f32),
1329-
max: frame_response.rect.max + Vec2::new(window_margins.right as f32, 0.0),
1328+
- Vec2::new(f32::from(window_margins.left), f32::from(window_margins.top)),
1329+
max: frame_response.rect.max + Vec2::new(f32::from(window_margins.right), 0.0),
13301330
};
13311331
let button_center = Align2::RIGHT_CENTER
13321332
.align_size_within_rect(Vec2::splat(frame_response.rect.height()), actual_frame_rect)

0 commit comments

Comments
 (0)