Эх сурвалжийг харах

Add conditional compile attr to `is_ingress`

Closes: #216
Approved by: whitequark
Ole Martin Ruud 7 жил өмнө
parent
commit
3fb0c22fd4

+ 1 - 0
src/socket/mod.rs

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