Introduce generic lifetime to Default implementation for style sheets
This commit is contained in:
parent
631e95ee0b
commit
157a40a568
12 changed files with 12 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue