Skip to content

Commit f63c631

Browse files
authored
re-add fetch_mode_no_cors shim when not in wasm, but deprecated (#2598)
1 parent e44e371 commit f63c631

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/async_impl/request.rs

+13
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,19 @@ impl RequestBuilder {
459459
self
460460
}
461461

462+
// This was a shell only meant to help with rendered documentation.
463+
// However, docs.rs can now show the docs for the wasm platforms, so this
464+
// is no longer needed.
465+
//
466+
// You should not otherwise depend on this function. It's deprecation
467+
// is just to nudge people to reduce breakage. It may be removed in a
468+
// future patch version.
469+
#[doc(hidden)]
470+
#[cfg_attr(target_arch = "wasm32", deprecated)]
471+
pub fn fetch_mode_no_cors(self) -> RequestBuilder {
472+
self
473+
}
474+
462475
/// Build a `Request`, which can be inspected, modified and executed with
463476
/// `Client::execute()`.
464477
pub fn build(self) -> crate::Result<Request> {

0 commit comments

Comments
 (0)