From 41d4b6d210238110c0a08df01b519a1ab8babc5b Mon Sep 17 00:00:00 2001 From: Gavin Peacock Date: Tue, 31 Jan 2023 14:46:21 -0800 Subject: [PATCH] Another try, back to 0.16.1 --- sdk/Cargo.toml | 2 +- sdk/src/manifest_store.rs | 2 +- sdk/src/manifest_store_report.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index d594d30f3..a1aaefe5f 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -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 ", "Gavin Peacock ", "Eric Scouten ", "Leonard Rosenthol ", "Dave Kozma "] license = "MIT OR Apache-2.0" diff --git a/sdk/src/manifest_store.rs b/sdk/src/manifest_store.rs index 59729958a..bd36527e7 100644 --- a/sdk/src/manifest_store.rs +++ b/sdk/src/manifest_store.rs @@ -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}"); diff --git a/sdk/src/manifest_store_report.rs b/sdk/src/manifest_store_report.rs index 8aca70416..e1fd4d378 100644 --- a/sdk/src/manifest_store_report.rs +++ b/sdk/src/manifest_store_report.rs @@ -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, }) }