mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix redundant field names warnings (#31793)
This commit is contained in:
parent
f55d1d288e
commit
2789e98876
97 changed files with 285 additions and 314 deletions
|
@ -147,10 +147,7 @@ pub enum ParsingAlgorithm {
|
|||
|
||||
impl ElementAttribute {
|
||||
pub fn new(name: QualName, value: DOMString) -> ElementAttribute {
|
||||
ElementAttribute {
|
||||
name: name,
|
||||
value: value,
|
||||
}
|
||||
ElementAttribute { name, value }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -765,8 +762,8 @@ impl ParserContext {
|
|||
ParserContext {
|
||||
parser: None,
|
||||
is_synthesized_document: false,
|
||||
id: id,
|
||||
url: url,
|
||||
id,
|
||||
url,
|
||||
resource_timing: ResourceFetchTiming::new(ResourceTimingType::Navigation),
|
||||
pushed_entry_index: None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue