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:
2026-08-13 07:44:02 +00:00
parent 8ab189cd56
commit dc5df5c073
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ impl MacAddr {
}
}
struct LinkFd(RawFd);
pub(crate) struct LinkFd(RawFd);
impl AsRawFd for LinkFd {
fn as_raw_fd(&self) -> RawFd {
self.0