aboutsummaryrefslogtreecommitdiff
path: root/src/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.rs')
-rw-r--r--src/color.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/color.rs b/src/color.rs
index d50ec8b..e7cb60c 100644
--- a/src/color.rs
+++ b/src/color.rs
@@ -13,6 +13,7 @@ impl <T: Display> Display for Colored<T> {
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
match self {
Colored::Color(t, before) => {
+ use crossterm::style::Stylize;
write!(fmt, "{}", style::style(t).with(*before))
},
Colored::Just(t) => {