Skip to content

Commit

Permalink
Merge pull request #275 from epage/harness
Browse files Browse the repository at this point in the history
fix(snap)!: Remove deprecated functions
  • Loading branch information
epage authored Apr 19, 2024
2 parents 429f389 + 86fa504 commit c3a43ce
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions crates/snapbox/src/report/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,8 @@ impl Palette {
Self::default()
}

#[deprecated(since = "0.4.9", note = "Renamed to `Palette::color")]
pub fn always() -> Self {
Self::color()
}

#[deprecated(since = "0.4.9", note = "Renamed to `Palette::plain")]
pub fn never() -> Self {
Self::plain()
}

#[deprecated(
since = "0.4.9",
note = "Use `Palette::always`, `auto` behavior is now implicit"
)]
pub fn auto() -> Self {
#[allow(dead_code)]
pub(crate) fn auto() -> Self {
if is_colored() {
Self::color()
} else {
Expand Down

0 comments on commit c3a43ce

Please sign in to comment.