Skip to content

Commit 62e3f32

Browse files
Update plotters/src/style/colors/colormaps.rs
Co-authored-by: Aaron Erhardt <aaron.erhardt@t-online.de>
1 parent b8f5dc8 commit 62e3f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotters/src/style/colors/colormaps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct DerivedColorMap<ColorType> {
3636

3737
impl<ColorType: crate::style::Color + Clone> DerivedColorMap<ColorType> {
3838
pub fn new(colors: &[ColorType]) -> Self {
39-
DerivedColorMap { colors: colors.iter().map(|color| color.clone()).collect::<Vec<_>>() }
39+
DerivedColorMap { colors: colors.iter().cloned().collect() }
4040
}
4141
}
4242

0 commit comments

Comments
 (0)