File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,16 @@ impl From<&RequestInit> for web_sys::RequestInit {
8383 // set the Cloudflare-specific `cf` property on FFI RequestInit
8484 if !req. cf . is_default ( ) {
8585 let r = :: js_sys:: Reflect :: set (
86- inner. as_ref ( ) ,
87- & JsValue :: from ( "cf" ) ,
88- & JsValue :: from ( & req. cf ) ,
89- ) ;
90- debug_assert ! (
91- r. is_ok( ) ,
92- "setting properties should never fail on our dictionary objects"
93- ) ;
94- let _ = r;
95- }
86+ inner. as_ref ( ) ,
87+ & JsValue :: from ( "cf" ) ,
88+ & JsValue :: from ( & req. cf ) ,
89+ ) ;
90+ debug_assert ! (
91+ r. is_ok( ) ,
92+ "setting properties should never fail on our dictionary objects"
93+ ) ;
94+ let _ = r;
95+ }
9696
9797 inner
9898 }
@@ -597,8 +597,5 @@ fn request_init_no_invalid_options() {
597597
598598 let js_init: web_sys:: RequestInit = ( & init) . into ( ) ;
599599
600- let _ = web_sys:: Request :: new_with_str_and_init (
601- "https://httpbin.org/post" ,
602- & js_init,
603- ) . unwrap ( ) ;
600+ let _ = web_sys:: Request :: new_with_str_and_init ( "https://httpbin.org/post" , & js_init) . unwrap ( ) ;
604601}
You can’t perform that action at this time.
0 commit comments