Use GradientBuilder::into_stops

Avoid cloning gradient stops.
This commit is contained in:
Pyfisch 2018-11-10 12:43:18 +01:00
parent b60006ae11
commit 0e4c4971be

View file

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