Reuse Text widget from iced_native in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-12 14:22:17 +07:00
parent 182fb9446c
commit dee3dba632
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 19 additions and 116 deletions

View file

@ -99,7 +99,7 @@ pub fn button<'a, Message, Renderer>(
Button::new(content)
}
pub fn text<Renderer>(text: impl ToString) -> Text<Renderer>
pub fn text<Renderer>(text: impl Into<String>) -> Text<Renderer>
where
Renderer: iced_native::text::Renderer,
{