Skip to content

Commit

Permalink
Remove unused ClientError struct
Browse files Browse the repository at this point in the history
  • Loading branch information
skywhale committed Jun 14, 2024
1 parent d81a73d commit 4449ae2
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4449ae2

Please sign in to comment.