From 48490c3d878da1e2760c7701e80586c3653d5bd8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:34:58 +0700 Subject: Introduce state lifetime for `style_sheet` in `Rule` --- style/src/rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style') diff --git a/style/src/rule.rs b/style/src/rule.rs index 221f48fb..7276bc19 100644 --- a/style/src/rule.rs +++ b/style/src/rule.rs @@ -110,9 +110,9 @@ impl std::default::Default for Box { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit