Browse Source

error: minor fix

ghassmo 4 years ago
parent
commit
8626642db6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/error.rs

+ 1 - 0
src/error.rs

@@ -352,6 +352,7 @@ impl<T: std::fmt::Display> From<crate::net3::transport::TransportError<T>> for E
     }
 }
 
+#[cfg(feature = "net3")]
 impl From<async_std::future::TimeoutError> for Error {
     fn from(_err: async_std::future::TimeoutError) -> Self {
         Self::TimeoutError