aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-05-06 23:30:11 -0700
committeriximeow <me@iximeow.net>2021-05-07 00:03:06 -0700
commit13285e356377c5c8cd6f0f0d2305ff9e40d17d78 (patch)
tree6d0403bbef9096021ee191fcef831547efa730e4 /src/lib.rs
parentd5cfecbf67a9b348d35cfc39e0aa9ccb269dfa1b (diff)
swap termion dep for crossterm, simplify Colorization interfaces0.0.5
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 76de58c..e95513d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,7 +13,7 @@ extern crate serde;
#[cfg(feature="use-serde")]
#[macro_use] extern crate serde_derive;
#[cfg(feature="colors")]
-extern crate termion;
+extern crate crossterm;
#[cfg(feature="use-serde")]
use serde::{Serialize, Deserialize};
@@ -77,7 +77,7 @@ pub trait Instruction {
fn well_defined(&self) -> bool;
}
-pub trait ShowContextual<Addr, Ctx: ?Sized, Color: Display, T: fmt::Write, Y: YaxColors<Color>> {
+pub trait ShowContextual<Addr, Ctx: ?Sized, T: fmt::Write, Y: YaxColors> {
fn contextualize(&self, colors: &Y, address: Addr, context: Option<&Ctx>, out: &mut T) -> fmt::Result;
}