From a9cc4caf68250517d9058509d8ff86e6c1b18f03 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Sat, 23 Dec 2023 12:12:40 +0900 Subject: [PATCH] fix lint errors Signed-off-by: Jun Kimura --- tests/integration/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/integration/src/lib.rs b/tests/integration/src/lib.rs index 439fd62e..4e06c215 100644 --- a/tests/integration/src/lib.rs +++ b/tests/integration/src/lib.rs @@ -196,11 +196,8 @@ mod tests { PortId::from_str("transfer")?, ChannelId::from_str("channel-0")?, ); - let res = rly.query_channel_proof( - port_id.clone(), - channel_id.clone(), - Some(last_height.into()), - )?; + let res = + rly.query_channel_proof(port_id.clone(), channel_id.clone(), Some(last_height))?; info!("expected channel is {:?}", res.0); @@ -249,7 +246,7 @@ mod tests { let msg: UpdateClientMessage = res.0.message().unwrap().try_into()?; assert!(msg.prev_height == Some(Height::from(last_height))); assert!(msg.post_height == Height::from(lh)); - assert!(msg.emitted_states.len() == 0); + assert!(msg.emitted_states.is_empty()); lh }; info!("current last_height is {}", last_height);