summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Ram.Type-0 <p0211@live.jp>2021-11-01 23:59:04 +0900
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-09-21 20:59:17 +0200
commitce3b89639d84a279bbc0f4dac912a136488d0bec (patch)
treeeaf073565e9c02eae8e013a5c59c26558aa13ba6 /src
parentf15bc3ca34cadb114f678cb2430209c474149b45 (diff)
downloadiced-ce3b89639d84a279bbc0f4dac912a136488d0bec.tar.gz
iced-ce3b89639d84a279bbc0f4dac912a136488d0bec.tar.bz2
iced-ce3b89639d84a279bbc0f4dac912a136488d0bec.zip
Take `Cow` in `Text::new`
Diffstat (limited to 'src')
-rw-r--r--src/widget.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.rs b/src/widget.rs
index 817d2d33..9f09cb8f 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -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 {