Skip to content

Commit a9cc4ca

Browse files
committed
fix lint errors
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent e6c4519 commit a9cc4ca

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/integration/src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,8 @@ mod tests {
196196
PortId::from_str("transfer")?,
197197
ChannelId::from_str("channel-0")?,
198198
);
199-
let res = rly.query_channel_proof(
200-
port_id.clone(),
201-
channel_id.clone(),
202-
Some(last_height.into()),
203-
)?;
199+
let res =
200+
rly.query_channel_proof(port_id.clone(), channel_id.clone(), Some(last_height))?;
204201

205202
info!("expected channel is {:?}", res.0);
206203

@@ -249,7 +246,7 @@ mod tests {
249246
let msg: UpdateClientMessage = res.0.message().unwrap().try_into()?;
250247
assert!(msg.prev_height == Some(Height::from(last_height)));
251248
assert!(msg.post_height == Height::from(lh));
252-
assert!(msg.emitted_states.len() == 0);
249+
assert!(msg.emitted_states.is_empty());
253250
lh
254251
};
255252
info!("current last_height is {}", last_height);

0 commit comments

Comments
 (0)