Take Cow in Text::new

This commit is contained in:
Ram.Type-0 2021-11-01 23:59:04 +09:00 committed by Héctor Ramón Jiménez
parent f15bc3ca34
commit ce3b89639d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 26 additions and 22 deletions

View file

@ -16,8 +16,8 @@ pub mod text {
pub use iced_native::widget::text::{Appearance, StyleSheet};
/// A paragraph of text.
pub type Text<Renderer = crate::Renderer> =
iced_native::widget::Text<Renderer>;
pub type Text<'a, Renderer = crate::Renderer> =
iced_native::widget::Text<'a, Renderer>;
}
pub mod button {