Skip to content

Commit

Permalink
lint: fixed clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Aug 13, 2024
1 parent 4a6795f commit ae9ef3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions programs/membership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ pub fn membership(
.verify_non_membership::<HostFunctionsManager>(
&ProofSpecs::cosmos(),
commitment_root.clone().into(),
path,
path.into(),
)
.unwrap();
} else {
merkle_proof
.verify_membership::<HostFunctionsManager>(
&ProofSpecs::cosmos(),
commitment_root.clone().into(),
path,
path.into(),
value.clone(),
0,
)
Expand Down
2 changes: 1 addition & 1 deletion programs/update-client/src/types/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<'a, 'b> ClientValidationContext for ClientValidationCtx<'a, 'b> {

impl<'a, 'b> ExtClientValidationContext for ClientValidationCtx<'a, 'b> {
fn host_timestamp(&self) -> Result<Timestamp, ContextError> {
Ok(Timestamp::from_nanoseconds(self.env.now * 1_000_000_000).unwrap())
Ok(Timestamp::from_nanoseconds(self.env.now * 1_000_000_000))
}

fn host_height(&self) -> Result<ibc_core_client::types::Height, ContextError> {
Expand Down

0 comments on commit ae9ef3b

Please sign in to comment.