Skip to content
Snippets Groups Projects
Commit 3103549c authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

socksproto: remove some unused accessors.

parent e6c6628a
No related branches found
No related tags found
No related merge requests found
......@@ -19,15 +19,6 @@ pub enum SocksVersion {
V5,
}
impl From<SocksVersion> for u8 {
fn from(v: SocksVersion) -> u8 {
match v {
SocksVersion::V4 => 4,
SocksVersion::V5 => 5,
}
}
}
impl TryFrom<u8> for SocksVersion {
type Error = Error;
fn try_from(v: u8) -> Result<SocksVersion> {
......@@ -184,12 +175,6 @@ impl AsRef<str> for SocksHostname {
}
}
impl From<SocksHostname> for String {
fn from(s: SocksHostname) -> String {
s.0
}
}
impl SocksRequest {
/// Create a SocksRequest with a given set of fields.
///
......
......@@ -18,3 +18,6 @@ We can delete older sections here after we bump the releases.
## Since Arti 0.2.0
### tor-socksproto
BREAKING: Removed some unused accessors.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment