We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7239a42 commit 5dc9f80Copy full SHA for 5dc9f80
graphql_client/src/web.rs
@@ -79,7 +79,7 @@ impl Client {
79
_query: Q,
80
variables: Q::Variables,
81
) -> Result<crate::Response<Q::ResponseData>, ClientError> {
82
- let window = web_sys::window().ok_or_else(|| ClientError::NoWindow)?;
+ let window = web_sys::window().ok_or(ClientError::NoWindow)?;
83
let body =
84
serde_json::to_string(&Q::build_query(variables)).map_err(|_| ClientError::Body)?;
85
0 commit comments