Skip to content

Commit

Permalink
clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Jan 28, 2025
1 parent 38a1102 commit 0a30e68
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn to_array<const N: usize>(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));
}
Expand Down
4 changes: 1 addition & 3 deletions crates/proof/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ruint::aliases::U256;
use serde::{Serialize, Deserialize};
use serde::{Deserialize, Serialize};

#[cfg(feature = "ark")]
mod ark;
Expand Down Expand Up @@ -28,5 +28,3 @@ impl Proof {
[a0, a1, bx0, bx1, by0, by1, c0, c1]
}
}


1 change: 0 additions & 1 deletion crates/semaphore/src/packed_proof.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// Re-export for backwards compatibility
pub use semaphore_rs_proof::packing::PackedProof;

1 change: 0 additions & 1 deletion crates/utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use core::{
fmt::{Formatter, Result as FmtResult},
str,
Expand Down

0 comments on commit 0a30e68

Please sign in to comment.