diff options
author | Himbeer <himbeer@disroot.org> | 2024-08-17 16:14:47 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-08-17 16:14:47 +0200 |
commit | 4d0fdbc6392a1b12dae246e81efa4bae95c95bca (patch) | |
tree | 5d99d8fb9de2beb5117a1ded83e844911d414a08 | |
parent | e7e5c220475174a482fd2882ac09cea22204ce51 (diff) |
Fix clippy warnings
-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 |