diff --git a/Cargo.toml b/Cargo.toml index 710388c..605c9fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "c2pa-node" version = "0.1.0" license = "MIT" -edition = "2021" +edition = "2024" exclude = ["index.node"] [lib] diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..f216078 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2024" diff --git a/src/neon_builder.rs b/src/neon_builder.rs index 1fd76d7..9b08883 100644 --- a/src/neon_builder.rs +++ b/src/neon_builder.rs @@ -12,7 +12,7 @@ // each license. use crate::asset::parse_asset; -use crate::error::{as_js_error, Error}; +use crate::error::{Error, as_js_error}; use crate::neon_identity_assertion_signer::NeonIdentityAssertionSigner; use crate::neon_signer::{CallbackSignerConfig, NeonCallbackSigner, NeonLocalSigner}; use crate::runtime::runtime; @@ -310,7 +310,7 @@ impl NeonBuilder { match output_stream.rewind() { Ok(_) => (), Err(e) => { - return cx.throw_error(format!("Failed to rewind stream: {e}")) + return cx.throw_error(format!("Failed to rewind stream: {e}")); } } match output_stream.read_to_end(&mut buffer) { @@ -381,7 +381,7 @@ impl NeonBuilder { match output_stream.rewind() { Ok(_) => (), Err(e) => { - return cx.throw_error(format!("Failed to rewind stream: {e}")) + return cx.throw_error(format!("Failed to rewind stream: {e}")); } } match output_stream.read_to_end(&mut buffer) { @@ -453,7 +453,7 @@ impl NeonBuilder { match output_stream.rewind() { Ok(_) => (), Err(e) => { - return cx.throw_error(format!("Failed to rewind stream: {e}")) + return cx.throw_error(format!("Failed to rewind stream: {e}")); } } match output_stream.read_to_end(&mut buffer) { @@ -542,7 +542,7 @@ impl NeonBuilder { _ => { return cx.throw_error(format!( "Property '{property}' not found or not a valid type" - )) + )); } }