From bb3f3c0414a6bf09a7d2eec1840e92c8aafbdae2 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 20 May 2022 12:47:41 -0400 Subject: [PATCH] COLORS don't need to be borrowed --- src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consts.rs b/src/consts.rs index fb3afcf..14fa143 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -30,7 +30,7 @@ pub const DEFAULT_INTEGRAL_NUM: usize = 100; /// Colors used for plotting // Colors commented out are used elsewhere and are not included here for better user experience -pub const COLORS: &[Color32; 13] = &[ +pub const COLORS: [Color32; 13] = [ Color32::RED, // Color32::GREEN, // Color32::YELLOW,