We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f5dc8 commit 62e3f32Copy full SHA for 62e3f32
plotters/src/style/colors/colormaps.rs
@@ -36,7 +36,7 @@ pub struct DerivedColorMap<ColorType> {
36
37
impl<ColorType: crate::style::Color + Clone> DerivedColorMap<ColorType> {
38
pub fn new(colors: &[ColorType]) -> Self {
39
- DerivedColorMap { colors: colors.iter().map(|color| color.clone()).collect::<Vec<_>>() }
+ DerivedColorMap { colors: colors.iter().cloned().collect() }
40
}
41
42
0 commit comments