Ali Behjati 2 лет назад
Родитель
Сommit
04806a551e
2 измененных файлов с 1 добавлено и 3 удалено
  1. 1 1
      hermes/src/store.rs
  2. 0 2
      hermes/src/store/types.rs

+ 1 - 1
hermes/src/store.rs

@@ -164,7 +164,7 @@ impl Store {
             .enumerate()
             .map(|(idx, message)| {
                 Ok(MessageState::new(
-                    message.clone(),
+                    *message,
                     ProofSet {
                         wormhole_merkle_proof: wormhole_merkle_message_states_proofs
                             .get(idx)

+ 0 - 2
hermes/src/store/types.rs

@@ -13,13 +13,11 @@ pub struct MessageIdentifier {
     pub type_:    MessageType,
 }
 
-
 #[derive(Clone, PartialEq, Debug)]
 pub struct ProofSet {
     pub wormhole_merkle_proof: WormholeMerkleMessageProof,
 }
 
-
 pub type Slot = u64;
 pub type UnixTimestamp = i64;