Can't have field shorthands in 1.16 :'(

This commit is contained in:
Joonas Javanainen 2017-07-14 22:08:03 +03:00
parent 96fe2a8e15
commit c17157b6ec
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -20,7 +20,7 @@ pub struct ChildFrame<'ui, 'p> {
impl<'ui, 'p> ChildFrame<'ui, 'p> {
pub fn new<S: Into<ImVec2>>(_: &Ui<'ui>, name: &'p ImStr, size: S) -> ChildFrame<'ui, 'p> {
ChildFrame {
name,
name: name,
size: size.into(),
flags: ImGuiWindowFlags::empty(),
_phantom: PhantomData,