diff options
Diffstat (limited to 'components/layout/display_list/gradient.rs')
-rw-r--r-- | components/layout/display_list/gradient.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list/gradient.rs b/components/layout/display_list/gradient.rs index 4e732247795..a161a0a6c95 100644 --- a/components/layout/display_list/gradient.rs +++ b/components/layout/display_list/gradient.rs @@ -166,7 +166,7 @@ fn convert_gradient_stops( let (end_index, end_stop) = stop_items[(i + 1)..] .iter() .enumerate() - .find(|&(_, ref stop)| stop.position.is_some()) + .find(|(_, stop)| stop.position.is_some()) .unwrap(); let end_offset = position_to_offset(end_stop.position.as_ref().unwrap(), total_length); @@ -191,7 +191,7 @@ fn convert_gradient_stops( }; assert!(offset.is_finite()); stops.push(GradientStop { - offset: offset, + offset, color: style.resolve_color(stop.color.clone()).to_layout(), }) } |