Skip to content

Commit 312f460

Browse files
committed
GetCString only needs to be build with features=net
1 parent 1b00238 commit 312f460

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,12 +1972,14 @@ impl<'a> Set<'a, OsString> for SetOsString<'a> {
19721972

19731973
/// Getter for a `CString` value.
19741974
#[cfg(apple_targets)]
1975+
#[cfg(feature = "net")]
19751976
struct GetCString<T: AsMut<[u8]>> {
19761977
len: socklen_t,
19771978
val: MaybeUninit<T>,
19781979
}
19791980

19801981
#[cfg(apple_targets)]
1982+
#[cfg(feature = "net")]
19811983
impl<T: AsMut<[u8]>> Get<CString> for GetCString<T> {
19821984
fn uninit() -> Self {
19831985
GetCString {

0 commit comments

Comments
 (0)