From 653c9539a22559f678d1ac3a31942e967b07ce3c Mon Sep 17 00:00:00 2001 From: Adam Spofford <93943719+adamspofford-dfinity@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:23:09 -0700 Subject: [PATCH] chore: fix clippy lints from the future (#609) --- ic-agent/src/agent/agent_error.rs | 8 +- ic-agent/src/agent/agent_test.rs | 16 +- ic-agent/src/agent/builder.rs | 2 +- ic-agent/src/agent/mod.rs | 82 +++++------ ic-agent/src/agent/route_provider.rs | 6 +- .../dynamic_routing/dynamic_route_provider.rs | 2 +- ic-agent/src/agent/status.rs | 2 +- ic-agent/src/identity/delegated.rs | 4 +- ic-agent/src/identity/prime256v1.rs | 2 +- ic-agent/src/identity/secp256k1.rs | 2 +- ic-identity-hsm/src/hsm.rs | 38 ++--- ic-transport-types/src/lib.rs | 8 +- ic-transport-types/src/request_id.rs | 89 ++++------- ic-transport-types/src/request_id/error.rs | 6 +- ic-utils/src/call.rs | 4 +- ic-utils/src/canister.rs | 42 +++--- ic-utils/src/interfaces/bitcoin_canister.rs | 2 +- ic-utils/src/interfaces/http_request.rs | 17 +-- .../src/interfaces/management_canister.rs | 10 +- .../management_canister/attributes.rs | 8 +- .../management_canister/builders.rs | 104 ++++++------- ic-utils/src/interfaces/wallet.rs | 33 +++-- icx-cert/src/pprint.rs | 11 +- icx/src/main.rs | 138 ++++++++---------- ref-tests/tests/ic-ref.rs | 2 +- ref-tests/tests/integration.rs | 2 +- 26 files changed, 297 insertions(+), 343 deletions(-) diff --git a/ic-agent/src/agent/agent_error.rs b/ic-agent/src/agent/agent_error.rs index b346c537..dc2b03c4 100644 --- a/ic-agent/src/agent/agent_error.rs +++ b/ic-agent/src/agent/agent_error.rs @@ -98,7 +98,7 @@ pub enum AgentError { #[error("The request status ({1}) at path {0:?} is invalid.")] InvalidRequestStatus(Vec