diff options
author | iximeow <me@iximeow.net> | 2021-05-06 23:30:11 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-05-07 00:03:06 -0700 |
commit | 13285e356377c5c8cd6f0f0d2305ff9e40d17d78 (patch) | |
tree | 6d0403bbef9096021ee191fcef831547efa730e4 /src/lib.rs | |
parent | d5cfecbf67a9b348d35cfc39e0aa9ccb269dfa1b (diff) |
swap termion dep for crossterm, simplify Colorization interfaces0.0.5
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |