From db3083552c59418c8312131987ce5758a675e96d Mon Sep 17 00:00:00 2001 From: Peter Neuroth Date: Fri, 10 Jan 2025 13:13:06 +0100 Subject: [PATCH] plugin: Allow dead code for `UdsConnectInfo` Cargo complaints about the unused fields in `UdsConnectInfo`. Currently the `UnixStream` in this file really seems to be unused but I assume that it is going to be needed in the future. Signed-off-by: Peter Neuroth --- libs/gl-plugin/src/unix.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gl-plugin/src/unix.rs b/libs/gl-plugin/src/unix.rs index a163b833f..f00df4fce 100644 --- a/libs/gl-plugin/src/unix.rs +++ b/libs/gl-plugin/src/unix.rs @@ -22,6 +22,7 @@ impl Connected for UnixStream { } #[derive(Clone, Debug)] +#[allow(dead_code)] // TODO: Check if this is really needed. pub struct UdsConnectInfo { pub peer_addr: Option>, pub peer_cred: Option,