From d3a7878fb4c5f34252225af9b677e0956a917021 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Mon, 11 Mar 2019 13:58:35 +0100 Subject: [PATCH] Make Color extend Debug --- src/color.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index 73776c2..6c543b6 100644 --- a/src/color.rs +++ b/src/color.rs @@ -18,10 +18,11 @@ use std::io::{self, Write, Read}; use std::time::{SystemTime, Duration}; use async::async_stdin; use std::env; +use std::fmt::Debug; use numtoa::NumToA; /// A terminal color. -pub trait Color { +pub trait Color: Debug { /// Write the foreground version of this color. fn write_fg(&self, f: &mut fmt::Formatter) -> fmt::Result; /// Write the background version of this color.