Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit d5eb9f6

Browse files
committed
Fix formatting issue
Keep `downcast_unchecked` method on the same line as the closing parenthesis of the chopped-down call to `Widget::from_glib_none`.
1 parent 607e824 commit d5eb9f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/file_chooser_dialog.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ impl FileChooserDialog {
2424
parent.to_glib_none().0,
2525
action.to_glib(),
2626
ptr::null::<c_char>()
27-
))
28-
.downcast_unchecked()
27+
)).downcast_unchecked()
2928
}
3029
}
3130

@@ -82,8 +81,7 @@ impl FileChooserDialog {
8281
// See: https://github.com/rust-lang/rust/issues/44930
8382
panic!(format!("`FileChooserDialog::with_buttons` does not support 4+ buttons, received {}", buttons.len()))
8483
}
85-
})
86-
.downcast_unchecked()
84+
}).downcast_unchecked()
8785
}
8886
}
8987
}

0 commit comments

Comments
 (0)