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

Commit

Permalink
Fix formatting issue
Browse files Browse the repository at this point in the history
Keep `downcast_unchecked` method on the same line as the closing
parenthesis of the chopped-down call to `Widget::from_glib_none`.
  • Loading branch information
demurgos committed Dec 11, 2017
1 parent 607e824 commit d5eb9f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/file_chooser_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ impl FileChooserDialog {
parent.to_glib_none().0,
action.to_glib(),
ptr::null::<c_char>()
))
.downcast_unchecked()
)).downcast_unchecked()
}
}

Expand Down Expand Up @@ -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()
}
}
}

0 comments on commit d5eb9f6

Please sign in to comment.