Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Oct 18, 2024
1 parent 45508a3 commit 00afacd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/sui-graphql-rpc-client/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ impl GraphqlResponse {
})
}

#[allow(clippy::result_large_err)]
pub fn graphql_version(&self) -> Result<String, ClientError> {
Ok(self
.headers
Expand Down Expand Up @@ -85,6 +86,7 @@ impl GraphqlResponse {
self.full_response.errors.clone()
}

#[allow(clippy::result_large_err)]
pub fn usage(&self) -> Result<Option<BTreeMap<String, u64>>, ClientError> {
Ok(match self.full_response.extensions.get("usage").cloned() {
Some(Value::Object(obj)) => Some(
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-graphql-rpc-client/src/simple_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl SimpleClient {
}
}

#[allow(clippy::type_complexity)]
#[allow(clippy::type_complexity, clippy::result_large_err)]
pub fn resolve_variables(
vars: &[GraphqlQueryVariable],
) -> Result<(BTreeMap<String, String>, BTreeMap<String, Value>), ClientError> {
Expand Down

0 comments on commit 00afacd

Please sign in to comment.