Skip to content

Commit 38cf72d

Browse files
committed
Bump edition to 2024
1 parent ed9e5d2 commit 38cf72d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "atlas-c2pa-lib"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
description = "A Rust library for creating, signing, and verifying machine learning assets with C2PA"
66
authors = ["Intel Labs"]
77
license = "MIT OR Apache-2.0"

src/assertion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn validate_hash_assertion(hash_assertion: &HashAssertion) -> Result<(), String>
356356
return Err(format!(
357357
"[HashAssertion] Unsupported hashing algorithm: '{}'. Expected one of: sha256, sha384, sha512",
358358
hash_assertion.algorithm
359-
))
359+
));
360360
}
361361
}
362362

src/claim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
//! is_active: true,
7272
//! };
7373
//! ```
74-
use crate::assertion::validate_assertion;
7574
use crate::assertion::Assertion;
75+
use crate::assertion::validate_assertion;
7676
use crate::ingredient::validate_ingredient;
7777

78-
use crate::datetime_wrapper::{validate_datetime, OffsetDateTimeWrapper};
78+
use crate::datetime_wrapper::{OffsetDateTimeWrapper, validate_datetime};
7979
use crate::ingredient::Ingredient;
8080
use serde::{Deserialize, Serialize};
8181

src/manifest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@
9191
//! // let validation_result = validate_linked_manifest(&cross_ref, &public_key);
9292
//! ```
9393
use crate::assertion::validate_assertion;
94-
use crate::claim::{validate_claim_v2, ClaimV2};
94+
use crate::claim::{ClaimV2, validate_claim_v2};
9595
pub use crate::cross_reference::CrossReference;
9696
use crate::datetime_wrapper::OffsetDateTimeWrapper;
97-
use crate::ingredient::{validate_ingredient, Ingredient};
98-
use base64::{engine::general_purpose, Engine as _};
97+
use crate::ingredient::{Ingredient, validate_ingredient};
98+
use base64::{Engine as _, engine::general_purpose};
9999
use openssl::pkey::PKey;
100100
use openssl::sign::Verifier;
101101
use serde::{Deserialize, Serialize};

tests/test_do_not_train_assertion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use atlas_c2pa_lib::assertion::Assertion;
22
use atlas_c2pa_lib::assertion::DoNotTrainAssertion;
33
use atlas_c2pa_lib::claim::ClaimV2;
44
use atlas_c2pa_lib::datetime_wrapper::OffsetDateTimeWrapper;
5-
use atlas_c2pa_lib::manifest::validate_manifest;
65
use atlas_c2pa_lib::manifest::Manifest;
6+
use atlas_c2pa_lib::manifest::validate_manifest;
77
use time::OffsetDateTime;
88

99
#[cfg(test)]

tests/test_ml_manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use atlas_c2pa_lib::asset_type::AssetType;
22
use atlas_c2pa_lib::ingredient::{Ingredient, IngredientData};
3-
use atlas_c2pa_lib::ml::manifest::{create_model_manifest, MLManifestBuilder};
3+
use atlas_c2pa_lib::ml::manifest::{MLManifestBuilder, create_model_manifest};
44
use atlas_c2pa_lib::ml::types::{DatasetInfo, MLFramework, ModelFormat, ModelInfo, TrainingInfo};
55

66
#[test]

0 commit comments

Comments
 (0)