Skip to content

Commit

Permalink
chore(deps): Drop anstyle crate for clap_cargo::style
Browse files Browse the repository at this point in the history
  • Loading branch information
xosnrdev committed Jan 20, 2025
1 parent 370ee95 commit 66c8c1f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ anyhow = "1.0.82"
git-conventional = "0.12.6"
similar = "2.5"
anstream = "0.6.14"
anstyle = "1.0.7"

[dev-dependencies]
assert_fs = "1.1"
Expand Down
1 change: 0 additions & 1 deletion src/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pub mod git;
pub mod index;
pub mod replace;
pub mod shell;
pub mod style;
pub mod version;

pub(crate) mod diff;
4 changes: 2 additions & 2 deletions src/ops/shell.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::io::{stdin, stdout, Write};

use anstyle::Style;
use anyhow::Context as _;
use clap::builder::styling::Style;
use clap_cargo::style::{ERROR, HEADER, NOTE, WARN};

use crate::error::CargoResult;
use crate::ops::style::{ERROR, HEADER, NOTE, WARN};

pub fn confirm(prompt: &str) -> bool {
let mut input = String::new();
Expand Down
13 changes: 0 additions & 13 deletions src/ops/style.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/steps/changes.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::error::CargoResult;
use crate::error::CliError;
use crate::ops::git;
use crate::ops::style::{ERROR, GOOD, NOP, WARN};
use crate::ops::version::VersionExt as _;
use crate::steps::plan;
use clap_cargo::style::{ERROR, GOOD, NOP, WARN};

/// Print commits since last tag
#[derive(Debug, Clone, clap::Args)]
Expand Down

0 comments on commit 66c8c1f

Please sign in to comment.