Skip to content

Commit

Permalink
field no needed
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Feb 12, 2019
1 parent ee582ba commit 6f18d30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xray/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub type Result<T> = StdResult<T, Error>;
/// X-Ray daemon client interface
#[derive(Debug)]
pub struct Client {
addr: SocketAddr,
socket: Arc<UdpSocket>,
}

Expand Down Expand Up @@ -62,7 +61,7 @@ impl Client {
let socket = Arc::new(UdpSocket::bind(&[([0, 0, 0, 0], 0).into()][..])?);
socket.set_nonblocking(true)?;
socket.connect(&addr)?;
Ok(Client { addr, socket })
Ok(Client { socket })
}

#[inline]
Expand Down

0 comments on commit 6f18d30

Please sign in to comment.