diff options
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | rust-toolchain | 2 | ||||
| -rw-r--r-- | src/color.rs | 1 | 
3 files changed, 5 insertions, 4 deletions
| @@ -2,16 +2,16 @@  authors = [ "iximeow <me@iximeow.net>" ]  description = "fundamental traits to describe an architecture in the yaxpeax project" -edition = "2018" +edition = "2021"  keywords = ["disassembly", "disassembler"]  license = "0BSD"  name = "yaxpeax-arch"  repository = "https://git.iximeow.net/yaxpeax-arch/" -version = "0.2.7" +version = "0.2.8"  [dependencies]  "num-traits" = { version = "0.2", default-features = false } -"crossterm" = { version = "0.19.0", optional = true } +"crossterm" = { version = "0.27.0", optional = true }  "serde" = { version = "1.0", optional = true }  "serde_derive" = { version = "1.0", optional = true } diff --git a/rust-toolchain b/rust-toolchain index b7921ae..df484cb 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.54.0 +1.71.0 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) => { | 
