Skip to content

Commit

Permalink
chore: eliminate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuanhust committed Nov 17, 2023
1 parent 9cba5ed commit 0387794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/relayer/src/chain/cosmos/types/events/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ macro_rules! impl_try_from_raw_obj_for_packet {
let data_str: String = extract_attribute(&obj, &format!("{}.{}", obj.action, PKT_DATA_ATTRIBUTE_KEY))?;

let mut packet = Packet::try_from(obj)?;
packet.data = Vec::from(data_str.as_str().as_bytes());
packet.data = Vec::from(data_str.as_bytes());

Ok(Self { packet })
}
Expand All @@ -95,7 +95,7 @@ impl TryFrom<RawObject<'_>> for WriteAcknowledgement {
.into_bytes();

let mut packet = Packet::try_from(obj)?;
packet.data = Vec::from(data_str.as_str().as_bytes());
packet.data = Vec::from(data_str.as_bytes());

Ok(Self { packet, ack })
}
Expand Down
2 changes: 1 addition & 1 deletion tools/forcerelay-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ mod tests {
println!("{}", line);
}
});
hex::decode(&type_id).expect("decode type_id failed")
hex::decode(type_id).expect("decode type_id failed")
};

sleep(80);
Expand Down

0 comments on commit 0387794

Please sign in to comment.