diff --git a/crates/js/src/lib.rs b/crates/js/src/lib.rs index fc79da2..c289b67 100644 --- a/crates/js/src/lib.rs +++ b/crates/js/src/lib.rs @@ -63,7 +63,7 @@ fn to_array(arr: [U256; N]) -> js_sys::Array { let ret = js_sys::Array::new(); for v in arr { let bytes: [u8; 32] = v.to_be_bytes(); - let s = hex::encode(&bytes); + let s = hex::encode(bytes); let s = format!("0x{s}"); ret.push(&JsValue::from_str(&s)); } diff --git a/crates/proof/src/lib.rs b/crates/proof/src/lib.rs index 442a676..71531cd 100644 --- a/crates/proof/src/lib.rs +++ b/crates/proof/src/lib.rs @@ -1,5 +1,5 @@ use ruint::aliases::U256; -use serde::{Serialize, Deserialize}; +use serde::{Deserialize, Serialize}; #[cfg(feature = "ark")] mod ark; @@ -28,5 +28,3 @@ impl Proof { [a0, a1, bx0, bx1, by0, by1, c0, c1] } } - - diff --git a/crates/semaphore/src/packed_proof.rs b/crates/semaphore/src/packed_proof.rs index 113c03e..e45de72 100644 --- a/crates/semaphore/src/packed_proof.rs +++ b/crates/semaphore/src/packed_proof.rs @@ -1,3 +1,2 @@ // Re-export for backwards compatibility pub use semaphore_rs_proof::packing::PackedProof; - diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index cdbb16f..26eee3e 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -1,4 +1,3 @@ - use core::{ fmt::{Formatter, Result as FmtResult}, str,