Skip to content

Commit 98fc95f

Browse files
Address fmt lints
1 parent ea27e22 commit 98fc95f

File tree

1 file changed

+5
-8
lines changed
  • wasm/src/programs/manager

1 file changed

+5
-8
lines changed

wasm/src/programs/manager/mod.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ mod transfer;
2424

2525
const DEFAULT_URL: &str = "https://api.explorer.provable.com/v1";
2626

27-
use std::panic::{catch_unwind, AssertUnwindSafe};
2827
use crate::{
2928
KeyPair,
3029
PrivateKey,
@@ -43,10 +42,10 @@ use crate::{
4342
VerifyingKeyNative,
4443
},
4544
};
46-
use snarkvm_console::network::Network;
47-
use snarkvm_console::prelude::ToBytes;
45+
use snarkvm_console::{network::Network, prelude::ToBytes};
4846
use snarkvm_synthesizer::process::{cost_in_microcredits_v2, deployment_cost};
4947
use snarkvm_synthesizer_program::StackKeys;
48+
use std::panic::{AssertUnwindSafe, catch_unwind};
5049

5150
use js_sys::{Object, Reflect};
5251
use std::str::FromStr;
@@ -92,9 +91,7 @@ impl ProgramManager {
9291
#[wasm_bindgen(js_name = "loadInclusionProver")]
9392
pub fn load_inclusion_prover(proving_key: ProvingKey) {
9493
let result = catch_unwind(AssertUnwindSafe(|| {
95-
let bytes = ProvingKeyNative::from(proving_key)
96-
.to_bytes_le()
97-
.expect("failed to convert to bytes");
94+
let bytes = ProvingKeyNative::from(proving_key).to_bytes_le().expect("failed to convert to bytes");
9895
<CurrentNetwork as Network>::inclusion_proving_key(Some(bytes));
9996
}));
10097

@@ -180,10 +177,10 @@ impl ProgramManager {
180177
mod tests {
181178
use super::*;
182179

180+
use crate::Metadata;
183181
use js_sys::{Object, Reflect};
184182
use wasm_bindgen::JsValue;
185183
use wasm_bindgen_test::*;
186-
use crate::Metadata;
187184

188185
pub const MULTIPLY_PROGRAM: &str = r#"// The 'multiply_test.aleo' program which is imported by the 'double_test.aleo' program.
189186
program multiply_test.aleo;
@@ -251,7 +248,7 @@ function add_and_double:
251248
assert!(process.contains_program(multiply_program.id()));
252249
assert!(process.contains_program(double_program.id()));
253250
}
254-
251+
255252
#[wasm_bindgen_test]
256253
async fn test_load_inclusion_prover() {
257254
let inclusion_prover_url = Metadata::inclusion().prover;

0 commit comments

Comments
 (0)