Skip to content
Permalink
Browse files

Use GradientBuilder::into_stops

Avoid cloning gradient stops.
  • Loading branch information
pyfisch committed Nov 10, 2018
1 parent b60006a commit 0e4c4971be95918a7dc26369673295ea9a5f28d9
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/layout/display_list/gradient.rs
@@ -283,7 +283,7 @@ pub fn linear(
(center + delta).to_layout(),
extend_mode(repeating),
),
builder.stops().to_vec(),
builder.into_stops(),
)
}

@@ -322,6 +322,6 @@ pub fn radial(
radius.to_layout(),
extend_mode(repeating),
),
builder.stops().to_vec(),
builder.into_stops(),
)
}

0 comments on commit 0e4c497

Please sign in to comment.
You can’t perform that action at this time.