From 9a2eb1fb0ab10cad3f918a6e88b463dfb2f91a63 Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Mon, 28 Aug 2023 10:10:16 +0200 Subject: [PATCH] fmt --- rln-cli/src/state.rs | 2 +- rln-wasm/tests/rln-wasm.rs | 1 - rln/src/protocol.rs | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rln-cli/src/state.rs b/rln-cli/src/state.rs index 1da3a61..b0986d7 100644 --- a/rln-cli/src/state.rs +++ b/rln-cli/src/state.rs @@ -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> { diff --git a/rln-wasm/tests/rln-wasm.rs b/rln-wasm/tests/rln-wasm.rs index 7be4e02..4f3484e 100644 --- a/rln-wasm/tests/rln-wasm.rs +++ b/rln-wasm/tests/rln-wasm.rs @@ -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(); diff --git a/rln/src/protocol.rs b/rln/src/protocol.rs index 8daac69..3dec374 100644 --- a/rln/src/protocol.rs +++ b/rln/src/protocol.rs @@ -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([