Skip to content

Commit 5dc9f80

Browse files
author
Christoph Siedentop
committed
Fix clippy warning.
No idea whence this came. ¯\_(ツ)_/¯ Wasn't present in #350 and this branch does not touch anything there.
1 parent 7239a42 commit 5dc9f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_client/src/web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Client {
7979
_query: Q,
8080
variables: Q::Variables,
8181
) -> Result<crate::Response<Q::ResponseData>, ClientError> {
82-
let window = web_sys::window().ok_or_else(|| ClientError::NoWindow)?;
82+
let window = web_sys::window().ok_or(ClientError::NoWindow)?;
8383
let body =
8484
serde_json::to_string(&Q::build_query(variables)).map_err(|_| ClientError::Body)?;
8585

0 commit comments

Comments
 (0)