Skip to content

Commit

Permalink
Use GradientBuilder::into_stops
Browse files Browse the repository at this point in the history
Avoid cloning gradient stops.
  • Loading branch information
pyfisch committed Nov 10, 2018
1 parent b60006a commit 0e4c497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/layout/display_list/gradient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pub fn linear(
(center + delta).to_layout(),
extend_mode(repeating),
),
builder.stops().to_vec(),
builder.into_stops(),
)
}

Expand Down Expand Up @@ -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.