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
|
@ -36,7 +36,7 @@ impl CanvasGradient {
|
|||
fn new_inherited(style: CanvasGradientStyle) -> CanvasGradient {
|
||||
CanvasGradient {
|
||||
reflector_: Reflector::new(),
|
||||
style: style,
|
||||
style,
|
||||
stops: DomRefCell::new(Vec::new()),
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ impl CanvasGradientMethods for CanvasGradient {
|
|||
|
||||
self.stops.borrow_mut().push(CanvasGradientStop {
|
||||
offset: (*offset) as f64,
|
||||
color: color,
|
||||
color,
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue