diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/proto.rs | 1 | ||||
-rw-r--r-- | src/supervisor.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/proto.rs b/src/proto.rs index 86517e3..1fd0929 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -107,6 +107,7 @@ trait ProtocolOptionNeedProtocol { fn need_protocol(&self, protocol: u16) -> bool; } +#[allow(dead_code)] trait LcpOptNeedProtocol { fn need_protocol(&self, protocol: u16) -> bool; } diff --git a/src/supervisor.rs b/src/supervisor.rs index a1c5870..140e981 100644 --- a/src/supervisor.rs +++ b/src/supervisor.rs @@ -42,7 +42,7 @@ struct sockaddr_pppox { /// A set of file descriptors describing a PPP session /// and its virtual network interface. #[derive(Debug)] -struct SessionFds(Socket, AsyncFd<File>, AsyncFd<File>); +struct SessionFds(#[allow(unused)] Socket, AsyncFd<File>, AsyncFd<File>); impl SessionFds { /// Returns an immutable reference to the file descriptor |