From d552d28418ef192724b2b4353863708f31f325d4 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Thu, 30 Nov 2017 00:38:29 +0100 Subject: clippy: do and don't pass some things by reference as suggested (needless_pass_by_value, needless_borrow). --- src/term/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/term') diff --git a/src/term/color.rs b/src/term/color.rs index f1f53a98..0284bee9 100644 --- a/src/term/color.rs +++ b/src/term/color.rs @@ -20,7 +20,7 @@ impl<'a> From<&'a Colors> for List { // Type inference fails without this annotation let mut list: List = unsafe { ::std::mem::uninitialized() }; - list.fill_named(&colors); + list.fill_named(colors); list.fill_cube(); list.fill_gray_ramp(); -- cgit