Skip to content

Commit

Permalink
Another try, back to 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeacock committed Jan 31, 2023
1 parent f45a505 commit 41d4b6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "c2pa"
version = "0.16.2"
version = "0.16.1"
description = "Rust SDK for C2PA (Coalition for Content Provenance and Authenticity) implementors"
authors = ["Maurice Fisher <mfisher@adobe.com>", "Gavin Peacock <gpeacock@adobe.com>", "Eric Scouten <scouten@adobe.com>", "Leonard Rosenthol <lrosenth@adobe.com>", "Dave Kozma <dkozma@adobe.com>"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/manifest_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ mod tests {
fn manifest_report_from_file_with_resources() {
let manifest_store = ManifestStore::from_file_with_resources(
"tests/fixtures/CIE-sig-CA.jpg",
"../target/tmp/manifest_store",
"../target/tmp/ms",
)
.expect("from_store_with_resources");
println!("{manifest_store}");
Expand Down
6 changes: 5 additions & 1 deletion sdk/src/manifest_store_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@ impl ManifestReport {
Ok(Self {
claim: serde_json::to_value(claim)?, // todo: this will lose tagging info
assertion_store,
credential_store: (!credential_store.is_empty()).then_some(credential_store),
credential_store: if !credential_store.is_empty() {
Some(credential_store)
} else {
None
},
signature,
})
}
Expand Down

0 comments on commit 41d4b6d

Please # to comment.