made editorwidget a type instead of a struct for now, we'll see if this has any negative ramifications later

main
aprzn 2 years ago
parent ccf4f8ee3b
commit 0dc4d5b37d

@ -32,11 +32,11 @@ struct Editor {
pts_per_second: f32, pts_per_second: f32,
} }
struct EditorWidget<'a> { editor: &'a mut Editor } type EditorWidget<'a> = &'a mut Editor;
impl Editor { impl Editor {
pub fn widget(&mut self) -> EditorWidget { pub fn widget(&mut self) -> EditorWidget {
EditorWidget { editor: self } self
} }
} }

Loading…
Cancel
Save