Преглед изворни кода

Add conditional compile attr to `is_ingress`

Closes: #216
Approved by: whitequark
Ole Martin Ruud пре 7 година
родитељ
комит
3fb0c22fd4
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/socket/mod.rs

+ 1 - 0
src/socket/mod.rs

@@ -67,6 +67,7 @@ pub(crate) enum PollAt {
 }
 
 impl PollAt {
+    #[cfg(feature = "socket-tcp")]
     fn is_ingress(&self) -> bool {
         match self {
             &PollAt::Ingress => true,