From 7f094bb3441e0a132a8f4042bf83ec2694372638 Mon Sep 17 00:00:00 2001 From: TA Thanh Dinh Date: Thu, 24 May 2018 14:38:48 +0200 Subject: [PATCH] Using slice notation instead of as_ref --- src/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features.rs b/src/features.rs index 3d761220d3..64b51fa943 100644 --- a/src/features.rs +++ b/src/features.rs @@ -47,7 +47,7 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) { } num_chars += new_chars; - print!("{}", Green.paint(word.as_ref())); + print!("{}", Green.paint(&word[..])); if extension.peek().is_some() { print!("{}", comma_separator); }