diff --git a/src/file_chooser_dialog.rs b/src/file_chooser_dialog.rs index 95aff8dc96..6e1cf3b666 100644 --- a/src/file_chooser_dialog.rs +++ b/src/file_chooser_dialog.rs @@ -24,8 +24,7 @@ impl FileChooserDialog { parent.to_glib_none().0, action.to_glib(), ptr::null::() - )) - .downcast_unchecked() + )).downcast_unchecked() } } @@ -82,8 +81,7 @@ impl FileChooserDialog { // See: https://github.com/rust-lang/rust/issues/44930 panic!(format!("`FileChooserDialog::with_buttons` does not support 4+ buttons, received {}", buttons.len())) } - }) - .downcast_unchecked() + }).downcast_unchecked() } } }