232232#![ cfg_attr( feature = "stdweb" , recursion_limit="128" ) ]
233233#![ cfg_attr( feature = "wasm-bindgen" , feature( use_extern_macros) ) ]
234234#![ cfg_attr( feature = "wasm-bindgen" , feature( wasm_import_module) ) ]
235- #![ cfg_attr( feature = "wasm-bindgen" , feature( wasm_custom_section) ) ]
236235
237236#[ cfg( feature="std" ) ] extern crate std as core;
238237#[ cfg( all( feature = "alloc" , not( feature="std" ) ) ) ] extern crate alloc;
@@ -911,6 +910,7 @@ pub mod __wbg_shims {
911910 #[ wasm_bindgen( method, getter, structural) ]
912911 pub fn crypto( me: & This ) -> JsValue ;
913912
913+ #[ derive( Clone , Debug ) ]
914914 pub type BrowserCrypto ;
915915
916916 // TODO: these `structural` annotations here ideally wouldn't be here to
@@ -924,24 +924,12 @@ pub mod __wbg_shims {
924924 #[ wasm_bindgen( js_name = require) ]
925925 pub fn node_require( s: & str ) -> NodeCrypto ;
926926
927+ #[ derive( Clone , Debug ) ]
927928 pub type NodeCrypto ;
928929
929930 #[ wasm_bindgen( method, js_name = randomFillSync, structural) ]
930931 pub fn random_fill_sync( me: & NodeCrypto , buf: & mut [ u8 ] ) ;
931932 }
932-
933- // TODO: replace with derive once rustwasm/wasm-bindgen#400 is merged
934- impl Clone for BrowserCrypto {
935- fn clone( & self ) -> BrowserCrypto {
936- BrowserCrypto { obj: self . obj. clone( ) }
937- }
938- }
939-
940- impl Clone for NodeCrypto {
941- fn clone( & self ) -> NodeCrypto {
942- NodeCrypto { obj: self . obj. clone( ) }
943- }
944- }
945933 }
946934}
947935
0 commit comments