From 06540f5ce1bd92e964a13929778897401fa6ec5f Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Thu, 12 Dec 2019 19:15:28 +0000 Subject: [PATCH] node: removing more lifetimes --- src/mix_peer.rs | 2 +- src/node/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mix_peer.rs b/src/mix_peer.rs index c5bacfcf76..6573c448f7 100644 --- a/src/mix_peer.rs +++ b/src/mix_peer.rs @@ -5,7 +5,7 @@ pub struct MixPeer { connection: String, } -impl<'a> MixPeer { +impl MixPeer { // note that very soon `next_hop_address` will be changed to `next_hop_metadata` pub fn new(next_hop_address: [u8; 32]) -> MixPeer { let address = String::from_utf8_lossy(&next_hop_address) diff --git a/src/node/mod.rs b/src/node/mod.rs index 522076389d..1892b6a75a 100644 --- a/src/node/mod.rs +++ b/src/node/mod.rs @@ -35,7 +35,7 @@ struct ForwardingData { } // TODO: this will need to be changed if MixPeer will live longer than our Forwarding Data -impl<'a> ForwardingData { +impl ForwardingData { fn new(packet: SphinxPacket, delay: SphinxDelay, recipient: MixPeer) -> Self { ForwardingData { packet, @@ -63,7 +63,7 @@ impl ProcessingData { struct PacketProcessor {} impl PacketProcessor { - pub fn process_sphinx_data_packet<'a>( + pub fn process_sphinx_data_packet( packet_data: &[u8], processing_data: Arc>, ) -> Result {