Skip to content

Commit

Permalink
fix(data): Remove Inline::raw in favor of IntoData::raw
Browse files Browse the repository at this point in the history
Not a breaking change because `Inline::raw` was exposed in assert-rs#318

Cherry pick 732fad9 (assert-rs#292)
  • Loading branch information
epage committed May 17, 2024
1 parent 7b51216 commit d243c75
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 @@ -112,13 +112,6 @@ impl Inline {
data.coerce_to(format)
}

/// Remove default [`filters`][crate::filter] from this `expected` result
pub fn raw(self) -> super::Data {
let mut data: super::Data = self.into();
data.filters = super::FilterSet::empty().newlines();
data
}

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

0 comments on commit d243c75

Please sign in to comment.