Skip to content

Commit

Permalink
Merge pull request #301 from epage/dir
Browse files Browse the repository at this point in the history
feat(dir)!: Add Dir trait with in-memory and filesystem impls
  • Loading branch information
epage authored Apr 25, 2024
2 parents ad4faa6 + 7277b26 commit c28d7d5
Show file tree
Hide file tree
Showing 6 changed files with 416 additions and 44 deletions.
2 changes: 1 addition & 1 deletion crates/snapbox/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl Data {
Self::with_inner(DataInner::JsonLines(serde_json::Value::Array(raw.into())))
}

fn error(raw: impl Into<crate::assert::Error>, intended: DataFormat) -> Self {
pub fn error(raw: impl Into<crate::assert::Error>, intended: DataFormat) -> Self {
Self::with_inner(DataInner::Error(DataError {
error: raw.into(),
intended,
Expand Down
Loading

0 comments on commit c28d7d5

Please sign in to comment.