Skip to content

Commit 9288086

Browse files
fix clippy alerts
1 parent ac29327 commit 9288086

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

aggregation_mode/sdk/src/gateway/provider.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
6969
address: String,
7070
nonce: Option<u64>,
7171
) -> Result<GatewayResponse<ReceiptsResponse>, GatewayError> {
72-
let query = ReceiptsQueryParams {
73-
address: address,
74-
nonce,
75-
};
72+
let query = ReceiptsQueryParams { address, nonce };
7673

7774
let request = self
7875
.http_client
@@ -101,7 +98,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
10198
SubmitSP1ProofMessage::new(nonce_response.data.nonce, serialized_proof, serialized_vk)
10299
.sign(signer, &self.network)
103100
.await
104-
.map_err(|e| GatewayError::MessageSignature(e))?;
101+
.map_err(GatewayError::MessageSignature)?;
105102

106103
let form = multipart::Form::new()
107104
.text("nonce", message.nonce.to_string())

aggregation_mode/sdk/src/gateway/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl SubmitSP1ProofMessage {
7171

7272
let nonce_bytes: [u8; 32] = U256::from_be_slice(&self.nonce.to_be_bytes()).to_be_bytes();
7373

74-
hasher.update(&nonce_bytes);
74+
hasher.update(nonce_bytes);
7575
hasher.update(&self.proof);
7676
hasher.update(&self.program_vk);
7777
hasher.finalize_into_array(&mut output);

0 commit comments

Comments
 (0)