Skip to content

Commit

Permalink
plugin: Allow dead code for UdsConnectInfo
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nepet committed Jan 10, 2025
1 parent b037543 commit db30835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/gl-plugin/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<tokio::net::unix::SocketAddr>>,
pub peer_cred: Option<tokio::net::unix::UCred>,
Expand Down

0 comments on commit db30835

Please sign in to comment.