mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove explicit lifetimes which can be elided.
This commit is contained in:
parent
11d23a41b3
commit
88991013ab
39 changed files with 66 additions and 66 deletions
|
@ -2387,7 +2387,7 @@ impl Fragment {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn inline_styles<'a>(&'a self) -> InlineStyleIterator<'a> {
|
||||
pub fn inline_styles(&self) -> InlineStyleIterator {
|
||||
InlineStyleIterator::new(self)
|
||||
}
|
||||
|
||||
|
@ -2542,7 +2542,7 @@ impl<'a> Iterator for InlineStyleIterator<'a> {
|
|||
}
|
||||
|
||||
impl<'a> InlineStyleIterator<'a> {
|
||||
fn new<'b>(fragment: &'b Fragment) -> InlineStyleIterator<'b> {
|
||||
fn new(fragment: &Fragment) -> InlineStyleIterator {
|
||||
InlineStyleIterator {
|
||||
fragment: fragment,
|
||||
inline_style_index: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue