File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1616
1717use crate :: { from_js_typed_array, to_bits_array_le, types:: native:: * } ;
1818// use crate::types::{U8, U16, U32};
19+ use crate :: Plaintext ;
1920use js_sys:: { Array , Uint8Array } ;
2021use once_cell:: sync:: OnceCell ;
2122use snarkvm_console:: prelude:: {
@@ -35,7 +36,6 @@ use snarkvm_console::prelude::{
3536 ToBits ,
3637 ToBytes ,
3738} ;
38- use crate :: Plaintext ;
3939use std:: { ops:: Deref , str:: FromStr } ;
4040use 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.
You can’t perform that action at this time.
0 commit comments