Skip to content

Commit

Permalink
Merge pull request #206 from epage/fix
Browse files Browse the repository at this point in the history
fix(snapbox): Clean up in prep for more structured formats
  • Loading branch information
epage authored Apr 12, 2023
2 parents 875ab56 + f65fb13 commit 79230d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/snapbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cmd = ["dep:os_pipe", "dep:wait-timeout", "dep:libc", "dep:windows-sys"]
examples = ["dep:escargot"]

## Snapshotting of json
json = ["structured-data"]
json = ["structured-data", "dep:serde_json"]
## Snapshotting of structured data
structured-data = ["dep:serde_json"]

Expand Down
2 changes: 1 addition & 1 deletion crates/snapbox/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct Data {
enum DataInner {
Binary(Vec<u8>),
Text(String),
#[cfg(feature = "structured-data")]
#[cfg(feature = "json")]
Json(serde_json::Value),
}

Expand Down

0 comments on commit 79230d3

Please sign in to comment.