From 817376bdfaf87df65f30fd61f31fa3f3d902017e Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Sat, 4 May 2024 19:19:45 +0900 Subject: [PATCH] Remove unused ClientError struct --- client/src/main.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/client/src/main.rs b/client/src/main.rs index 0f7f8e6..67cbf1a 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -15,7 +15,7 @@ use shared::{ RedeemContents, RenameCidrOpts, RenamePeerOpts, State, WrappedIoError, REDEEM_TRANSITION_WAIT, }; use std::{ - fmt, io, + io, net::SocketAddr, path::{Path, PathBuf}, thread, @@ -281,22 +281,6 @@ enum Command { }, } -/// Application-level error. -#[derive(Debug, Clone)] -pub(crate) struct ClientError(String); - -impl fmt::Display for ClientError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}", self.0) - } -} - -impl std::error::Error for ClientError { - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - None - } -} - fn update_hosts_file( interface: &InterfaceName, hosts_path: PathBuf,