Remove unused ClientError struct
parent
146dd77a3f
commit
817376bdfa
|
@ -15,7 +15,7 @@ use shared::{
|
||||||
RedeemContents, RenameCidrOpts, RenamePeerOpts, State, WrappedIoError, REDEEM_TRANSITION_WAIT,
|
RedeemContents, RenameCidrOpts, RenamePeerOpts, State, WrappedIoError, REDEEM_TRANSITION_WAIT,
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
fmt, io,
|
io,
|
||||||
net::SocketAddr,
|
net::SocketAddr,
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
thread,
|
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(
|
fn update_hosts_file(
|
||||||
interface: &InterfaceName,
|
interface: &InterfaceName,
|
||||||
hosts_path: PathBuf,
|
hosts_path: PathBuf,
|
||||||
|
|
Loading…
Reference in New Issue