Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
devashishdxt committed Dec 6, 2023
1 parent 8f82627 commit 46031be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern "C" {
fn js_fetch(request: &Request, options: Option<FetchOptions>) -> Promise {
let global = js_sys::global();

let init = options.map(Into::into).unwrap_or_else(RequestInit::new);
let init = options.map(Into::into).unwrap_or_default();

if let Ok(true) = js_sys::Reflect::has(&global, &JsValue::from_str("ServiceWorkerGlobalScope"))
{
Expand Down

0 comments on commit 46031be

Please sign in to comment.