Introduce generic lifetime to Default implementation for style sheets

This commit is contained in:
Héctor Ramón Jiménez 2021-11-02 16:02:05 +07:00
parent 631e95ee0b
commit 157a40a568
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
12 changed files with 12 additions and 12 deletions

View file

@ -60,7 +60,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)
}