Skip to content

Commit 93fe1da

Browse files
fmt
1 parent 6abb707 commit 93fe1da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wasm/src/types/integer.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
use crate::{from_js_typed_array, to_bits_array_le, types::native::*};
1818
// use crate::types::{U8, U16, U32};
19+
use crate::Plaintext;
1920
use js_sys::{Array, Uint8Array};
2021
use once_cell::sync::OnceCell;
2122
use snarkvm_console::prelude::{
@@ -35,7 +36,6 @@ use snarkvm_console::prelude::{
3536
ToBits,
3637
ToBytes,
3738
};
38-
use crate::Plaintext;
3939
use std::{ops::Deref, str::FromStr};
4040
use wasm_bindgen::prelude::*;
4141

@@ -181,9 +181,7 @@ macro_rules! impl_integer {
181181
/// Convert from Field.
182182
#[wasm_bindgen(js_name = "fromField")]
183183
pub fn from_field(field: &crate::Field) -> Result<$name, String> {
184-
<$native>::from_field(&FieldNative::from(field))
185-
.map(Self)
186-
.map_err(|e| e.to_string())
184+
<$native>::from_field(&FieldNative::from(field)).map(Self).map_err(|e| e.to_string())
187185
}
188186

189187
/// Convert from Fields.

0 commit comments

Comments
 (0)