aboutsummaryrefslogtreecommitdiff
path: root/src/display.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/display.rs
parentd5cfecbf67a9b348d35cfc39e0aa9ccb269dfa1b (diff)
swap termion dep for crossterm, simplify Colorization interfaces0.0.5
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs
index 50d63d5..789919e 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -17,7 +17,7 @@ pub enum NumberStyleHint {
HexUnsignedWithSign
}
-pub fn format_number_i32<W: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>>(colors: &Y, f: &mut W, i: i32, hint: NumberStyleHint) -> fmt::Result {
+pub fn format_number_i32<W: fmt::Write, Y: YaxColors>(colors: &Y, f: &mut W, i: i32, hint: NumberStyleHint) -> fmt::Result {
match hint {
NumberStyleHint::Signed => {
write!(f, "{}", colors.number(i))