summaryrefslogtreecommitdiffstats
path: root/style/src/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/text_input.rs')
-rw-r--r--style/src/text_input.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/style/src/text_input.rs b/style/src/text_input.rs
index 19acea65..3d5817cc 100644
--- a/style/src/text_input.rs
+++ b/style/src/text_input.rs
@@ -73,17 +73,17 @@ impl StyleSheet for Default {
}
}
-impl std::default::Default for Box<dyn StyleSheet> {
+impl<'a> std::default::Default for Box<dyn StyleSheet + 'a> {
fn default() -> Self {
Box::new(Default)
}
}
-impl<T> From<T> for Box<dyn StyleSheet>
+impl<'a, T> From<T> for Box<dyn StyleSheet + 'a>
where
- T: 'static + StyleSheet,
+ T: StyleSheet + 'a,
{
- fn from(style: T) -> Self {
- Box::new(style)
+ fn from(style_sheet: T) -> Self {
+ Box::new(style_sheet)
}
}