Skip to content

Commit

Permalink
fix: Clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tmathern committed Feb 7, 2025
1 parent 7d2418a commit 1c262b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/src/display_decorator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ use c2pa::{Error, Reader};
use serde_json::{Map, Value};
use tokio::runtime::Runtime;

// the decorators we know about an plan to use
use crate::decorators::cawg_decorator::{
decorate_cawg_assertion_from_detailed_report, decorate_json_cawg_assertions,
};

// Display decorators for JSON output/display
// We do not mutate any Reader here, only make JSON output "nicer""

/// Update/decorate the displayed JSON assertions for a more human-readable JSON output.
fn decorate_json_assertions(
reader: &Reader,
Expand Down Expand Up @@ -69,7 +73,7 @@ fn decorate_json_assertions(
}
};

// for CAWG assertions, further parse the signature
// here we decorate something: for CAWG assertions, further parse the signature
if label.contains("cawg.identity") {
decorate_json_cawg_assertions(current_manifest, assertion, tokio_runtime)?;
}
Expand Down Expand Up @@ -111,7 +115,7 @@ pub(crate) fn decorate_json_detailed_display(
}
};

// Update assertion with more details (eg. for CAWG)
// Here we decorate something: Update assertion with more details (eg. for CAWG)
match decorate_cawg_assertion_from_detailed_report(reader, manifests, tokio_runtime) {
Ok(_) => (),
Err(err) => {
Expand Down

0 comments on commit 1c262b2

Please sign in to comment.