Remove unnecessary merge of iced_wgpu::Defaults

This commit is contained in:
Héctor Ramón Jiménez 2020-03-29 15:16:36 +02:00
parent 3f7dd50594
commit 49bcebb1e5
2 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,7 @@ impl iced_native::button::Renderer for Renderer {
fn draw<Message>( fn draw<Message>(
&mut self, &mut self,
defaults: &Defaults, _defaults: &Defaults,
bounds: Rectangle, bounds: Rectangle,
cursor_position: Point, cursor_position: Point,
is_disabled: bool, is_disabled: bool,
@ -39,7 +39,6 @@ impl iced_native::button::Renderer for Renderer {
text: defaults::Text { text: defaults::Text {
color: styling.text_color, color: styling.text_color,
}, },
..*defaults
}, },
content_layout, content_layout,
cursor_position, cursor_position,

View File

@ -19,7 +19,6 @@ impl iced_native::container::Renderer for Renderer {
text: defaults::Text { text: defaults::Text {
color: style.text_color.unwrap_or(defaults.text.color), color: style.text_color.unwrap_or(defaults.text.color),
}, },
..*defaults
}; };
let (content, mouse_cursor) = let (content, mouse_cursor) =