Skip to content

Commit e58b40c

Browse files
nepetcdecker
authored andcommitted
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 <[email protected]>
1 parent 5deeb46 commit e58b40c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/gl-plugin/src/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ impl Connected for UnixStream {
2222
}
2323

2424
#[derive(Clone, Debug)]
25+
#[allow(dead_code)] // TODO: Check if this is really needed.
2526
pub struct UdsConnectInfo {
2627
pub peer_addr: Option<Arc<tokio::net::unix::SocketAddr>>,
2728
pub peer_cred: Option<tokio::net::unix::UCred>,

0 commit comments

Comments
 (0)