Skip to content

Commit d77070f

Browse files
ali-behjatiReisen
authored andcommitted
clippy
1 parent d70119c commit d77070f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hermes/src/network/pythnet.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ pub async fn spawn(pythnet_ws_endpoint: String, store: Store) -> Result<()> {
4343
encoding: Some(UiAccountEncoding::Base64Zstd),
4444
..Default::default()
4545
},
46-
filters: Some(vec![RpcFilterType::Memcmp(Memcmp {
46+
filters: Some(vec![RpcFilterType::Memcmp(Memcmp {
4747
offset: 0,
4848
bytes: MemcmpEncodedBytes::Bytes(b"PAS1".to_vec()),
4949
encoding: None,
5050
})]),
51-
with_context: Some(true),
52-
..Default::default()
51+
with_context: Some(true),
5352
};
5453

5554
let (mut notif, _unsub) = client

hermes/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Store {
7676
Update::Vaa(vaa_bytes) => {
7777
let vaa =
7878
serde_wormhole::from_slice::<Vaa<&serde_wormhole::RawMessage>>(&vaa_bytes)?;
79-
let payload = WormholePayload::try_from_bytes(&vaa.payload, &vaa_bytes)?;
79+
let payload = WormholePayload::try_from_bytes(vaa.payload, &vaa_bytes)?;
8080

8181
// FIXME: Validate the VAA
8282
// FIXME: Skip similar VAAs

0 commit comments

Comments
 (0)