Skip to content

Conversation

@Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Feb 1, 2021

Building like this

cargo test --no-default-features --features std,proto-ipv4

fails with this

error[E0392]: parameter `'a` is never used
--> src/socket/mod.rs:84:17
|
84 | pub enum Socket<'a> {
|                 ^^ unused parameter

This used to work before, was broken by #410 . Rather than adding back a dummy enum variant, this fixes the issue by making the entire socket module optional, only built if at least one socket feature is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants