|
@@ -116,8 +116,8 @@ impl<WC: WindowComponent> WindowState<WC> {
|
|
|
// now put the pre-render layout dump on the window
|
|
|
// again, we're doing this the dumb way
|
|
|
let mut offset = 0;
|
|
|
- for text in pre_render_dump.split("\n") {
|
|
|
- if text.len() == 0 {
|
|
|
+ for text in pre_render_dump.split('\n') {
|
|
|
+ if text.is_empty() {
|
|
|
continue;
|
|
|
}
|
|
|
let line = uih.theme().make_line(text).render_line();
|
|
@@ -223,8 +223,8 @@ impl<'r, 'l: 'r> WindowBuilder<'r, 'l> {
|
|
|
root_node: LayoutNode::new(self.ui_handle.state.layout_cache.clone()),
|
|
|
window,
|
|
|
events: Default::default(),
|
|
|
- istate: InputState::default().into(),
|
|
|
- surface: surface.into(),
|
|
|
+ istate: InputState::default(),
|
|
|
+ surface,
|
|
|
bitmap: None.into(),
|
|
|
}));
|
|
|
|