Skip to content

Commit

Permalink
chore: replace unmaintained ansi_term dependency with nu_ansi_term (#18)
Browse files Browse the repository at this point in the history
Replace unmaintained ansi_term dependency with nu_ansi_term in order to address [RUSTSEC-2021-0139](https://rustsec.org/advisories/RUSTSEC-2021-0139).
  • Loading branch information
weiznich authored Aug 29, 2022
1 parent 7c3c7a8 commit ab05908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ categories = ["text-processing"]
edition = "2018"

[dependencies]
ansi_term = "0.12"
nu-ansi-term = "0.46.0"
2 changes: 1 addition & 1 deletion src/patch/format.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::{Hunk, Line, Patch, NO_NEWLINE_AT_EOF};
use ansi_term::{Color, Style};
use nu_ansi_term::{Color, Style};
use std::{
fmt::{Display, Formatter, Result},
io,
Expand Down

0 comments on commit ab05908

Please sign in to comment.