Skip to content

Commit

Permalink
fix(data)!: Remove Source::coerce_to (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 22, 2024
1 parent 1769482 commit 3ddd841
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/snapbox/src/data/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ impl Inline {
data.is(format)
}

/// Deprecated, replaced with [`Inline::is`]
#[deprecated(since = "0.5.2", note = "Replaced with `Inline::is`")]
pub fn coerce_to(self, format: super::DataFormat) -> super::Data {
let data: super::Data = self.into();
data.coerce_to(format)
}

fn trimmed(&self) -> String {
let mut data = self.data;
if data.contains('\n') {
Expand Down

0 comments on commit 3ddd841

Please sign in to comment.