diff options
author | 2021-11-02 16:02:05 +0700 | |
---|---|---|
committer | 2021-11-02 16:02:05 +0700 | |
commit | 157a40a56882ec1959034fa499b383e7f633aaf8 (patch) | |
tree | 13ff4aea30a981053f00d22d099cba73e6db3c78 /style/src/toggler.rs | |
parent | 631e95ee0be01dc7f5e5183e1429972aee37787f (diff) | |
download | iced-157a40a56882ec1959034fa499b383e7f633aaf8.tar.gz iced-157a40a56882ec1959034fa499b383e7f633aaf8.tar.bz2 iced-157a40a56882ec1959034fa499b383e7f633aaf8.zip |
Introduce generic lifetime to `Default` implementation for style sheets
Diffstat (limited to '')
-rw-r--r-- | style/src/toggler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/style/src/toggler.rs b/style/src/toggler.rs index 16c014e6..c06a8cd1 100644 --- a/style/src/toggler.rs +++ b/style/src/toggler.rs @@ -41,7 +41,7 @@ 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) } |