diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-11-28 13:07:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 13:07:03 -0500 |
commit | cc83ad39ce3e8186c8785d47fa4801317c8fac4a (patch) | |
tree | 7910684a15a0c33992c311b4fb94f9b323f3a7ee /runtime/build.rs | |
parent | 96d02deed626f391be0df30b9b08b7ba141db388 (diff) |
refactor: add deno_fetch::Options for init (#12904)
deno_fetch::init has a lot of parameters and generic on two types
that keeps expanding over time. This refactor adds deno_fetch::Options
struct for more clearly defining the various parameters.
Diffstat (limited to 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index b0af848ba..14e2e0362 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -121,15 +121,7 @@ mod not_docs { deno_url::init(), deno_tls::init(), deno_web::init(deno_web::BlobStore::default(), Default::default()), - deno_fetch::init::<Permissions, deno_fetch::DefaultFileFetchHandler>( - "".to_owned(), - None, - None, - None, - None, - None, - deno_fetch::DefaultFileFetchHandler, // No enable_file_fetch - ), + deno_fetch::init::<Permissions>(Default::default()), deno_websocket::init::<Permissions>("".to_owned(), None, None), deno_webstorage::init(None), deno_crypto::init(None), |