File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ impl Field {
9090 Field ( self . 0 )
9191 }
9292
93- /// Returns a reference to the inner native Field representation.
94- /// Useful when calling Rust functions that operate on FieldNative directly.
95- pub ( crate ) fn as_native ( & self ) -> & FieldNative {
96- & self . 0
97- }
98-
9993 /// Generate a random field element.
10094 pub fn random ( ) -> Field {
10195 let rng = & mut rand:: thread_rng ( ) ;
Original file line number Diff line number Diff line change @@ -181,7 +181,9 @@ 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( field. as_native( ) ) . map( Self ) . map_err( |e| e. to_string( ) )
184+ <$native>:: from_field( & FieldNative :: from( field) )
185+ . map( Self )
186+ . map_err( |e| e. to_string( ) )
185187 }
186188
187189 /// Convert from Fields.
You can’t perform that action at this time.
0 commit comments