Skip to content

Commit

Permalink
fix: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jul 12, 2024
1 parent 3f7f90a commit 8f7f0aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ibc-derive/src/client_state/traits/client_state_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub(crate) fn impl_ClientStateCommon(
}
}

fn serialize_path(&self, path: impl Into<#Path>) -> core::result::Result<#PathBytes, #ClientError> {
fn serialize_path(&self, path: #Path) -> core::result::Result<#PathBytes, #ClientError> {
match self {
#(#serialize_path_impl),*
}
Expand All @@ -147,7 +147,7 @@ pub(crate) fn impl_ClientStateCommon(
prefix: &#CommitmentPrefix,
proof: &#CommitmentProofBytes,
root: &#CommitmentRoot,
path: impl Into<#Path>,
path: #Path,
value: Vec<u8>,
) -> core::result::Result<(), #ClientError> {
match self {
Expand All @@ -172,7 +172,7 @@ pub(crate) fn impl_ClientStateCommon(
prefix: &#CommitmentPrefix,
proof: &#CommitmentProofBytes,
root: &#CommitmentRoot,
path: impl Into<#Path>,
path: #Path,
) -> core::result::Result<(), #ClientError> {
match self {
#(#verify_non_membership_impl),*
Expand Down
4 changes: 2 additions & 2 deletions ibc-testkit/src/testapp/ibc/clients/mock/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ impl ClientStateCommon for MockClientState {
Ok(())
}

fn serialize_path(&self, path: impl Into<Path>) -> Result<PathBytes, ClientError> {
Ok(path.into().to_string().into_bytes().into())
fn serialize_path(&self, path: Path) -> Result<PathBytes, ClientError> {
Ok(path.to_string().into_bytes().into())
}

fn verify_upgrade_client(
Expand Down
4 changes: 2 additions & 2 deletions tests-integration/tests/core/ics02_client/create_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ fn test_tm_create_client_proof_verification_ok() {
&ctx_tm.ibc_store().commitment_prefix(),
&proof,
&root,
next_client_seq_path.clone(),
next_client_seq_path.clone().into(),
serde_json::to_vec(&next_client_seq_value).expect("valid json serialization"),
)
.expect("successful proof verification");
Expand All @@ -207,7 +207,7 @@ fn test_tm_create_client_proof_verification_ok() {
&ctx_tm.ibc_store().commitment_prefix(),
&proof,
&root,
next_client_seq_path,
next_client_seq_path.into(),
serde_json::to_vec(&(next_client_seq_value + 1)).expect("valid json serialization"),
)
.expect_err("proof verification fails"),
Expand Down

0 comments on commit 8f7f0aa

Please sign in to comment.