Skip to content

Commit b922c86

Browse files
committed
Got rid of compiler warnings
1 parent 0c90afe commit b922c86

File tree

4 files changed

+3
-49
lines changed

4 files changed

+3
-49
lines changed

mixnode/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use clap::{App, ArgMatches};
33
pub mod built_info;
44
mod commands;
55
mod config;
6-
mod mix_peer;
76
mod node;
87

98
fn main() {

mixnode/src/mix_peer.rs

-45
This file was deleted.

mixnode/src/node/packet_forwarding.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ pub(crate) struct PacketForwarder<'a> {
1111
conn_rx: mpsc::UnboundedReceiver<(SocketAddr, Vec<u8>)>,
1212
}
1313

14-
impl<'a: 'static> PacketForwarder<'a> {
14+
impl PacketForwarder<'static> {
1515
pub(crate) async fn new(
1616
initial_endpoints: Vec<SocketAddr>,
1717
initial_reconnection_backoff: Duration,
1818
maximum_reconnection_backoff: Duration,
19-
) -> PacketForwarder<'a> {
19+
) -> PacketForwarder<'static> {
2020
let tcp_client_config = multi_tcp_client::Config::new(
2121
initial_endpoints,
2222
initial_reconnection_backoff,

mixnode/src/node/packet_processing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use sphinx::{ProcessedPacket, SphinxPacket};
88
use std::net::SocketAddr;
99
use std::ops::Deref;
1010
use std::sync::Arc;
11-
use std::time::Duration;
1211

1312
#[derive(Debug)]
1413
pub enum MixProcessingError {
@@ -20,6 +19,7 @@ pub enum MixProcessingError {
2019

2120
pub enum MixProcessingResult {
2221
ForwardHop(SocketAddr, Vec<u8>),
22+
#[allow(dead_code)]
2323
LoopMessage,
2424
}
2525

0 commit comments

Comments
 (0)