fix private type leak and dead_code warnings
- LinkFd -> pub(crate) so it's visible in return types of readable/writable - #[allow(dead_code)] on Proto enum (Udp variant reserved for v2)
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ impl MacAddr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct LinkFd(RawFd);
|
pub(crate) struct LinkFd(RawFd);
|
||||||
impl AsRawFd for LinkFd {
|
impl AsRawFd for LinkFd {
|
||||||
fn as_raw_fd(&self) -> RawFd {
|
fn as_raw_fd(&self) -> RawFd {
|
||||||
self.0
|
self.0
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
use crate::frame::{UpstreamEntry, PROTO_TCP, PROTO_UDP};
|
use crate::frame::{UpstreamEntry, PROTO_TCP, PROTO_UDP};
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub enum Proto {
|
pub enum Proto {
|
||||||
Tcp,
|
Tcp,
|
||||||
Udp,
|
Udp,
|
||||||
|
|||||||
Reference in New Issue
Block a user