Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tyshko-rostyslav committed Aug 28, 2023
1 parent 5493bd8 commit 9a2eb1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rln-cli/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use color_eyre::Result;
use rln::public::RLN;
use std::fs::File;

use crate::config::{InnerConfig, Config};
use crate::config::{Config, InnerConfig};

#[derive(Default)]
pub(crate) struct State<'a> {
Expand Down
1 change: 0 additions & 1 deletion rln-wasm/tests/rln-wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ mod tests {
// Creating an instance of RLN
let rln_instance = wasm_new(tree_height, zkey, vk).unwrap();


let test_metadata = Uint8Array::new(&JsValue::from_str("test"));
// Inserting random metadata
wasm_set_metadata(rln_instance, test_metadata.clone()).unwrap();
Expand Down
4 changes: 3 additions & 1 deletion rln/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ pub fn inputs_for_witness_calculation(
.for_each(|v| identity_path_index.push(BigInt::from(*v)));

if rln_witness.message_id > rln_witness.user_message_limit {
return Err(color_eyre::Report::msg("message_id is not within user_message_limit"))
return Err(color_eyre::Report::msg(
"message_id is not within user_message_limit",
));
}

Ok([
Expand Down

0 comments on commit 9a2eb1f

Please sign in to comment.