Fix minor color bug

If we are not using RED then the Color should be the terminal default
not 7
This commit is contained in:
andy.boot
2018-06-19 23:39:23 +01:00
parent cab24f58d5
commit 0bf4ebf554
3 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
extern crate ansi_term;
use self::ansi_term::Colour::Fixed;
use self::ansi_term::Style;
use std::collections::HashSet;
static UNITS: [char; 4] = ['T', 'G', 'M', 'K'];
@@ -171,7 +172,7 @@ pub fn format_string(
if is_biggest {
Fixed(196).paint(size)
} else {
Fixed(7).paint(size)
Style::new().paint(size)
},
indentation,
printable_name,