Skip to content

Commit 1ca358a

Browse files
committed
cargo fmt
1 parent d0f124f commit 1ca358a

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

worker/src/request_init.rs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)