Przeglądaj źródła

Add a missing feature check.

whitequark 7 lat temu
rodzic
commit
e0cbe22556
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/iface/neighbor.rs

+ 1 - 0
src/iface/neighbor.rs

@@ -103,6 +103,7 @@ impl<'a> Cache<'a> {
                             .0
                     }
                     // Owned maps can extend themselves.
+                    #[cfg(any(feature = "std", feature = "alloc"))]
                     ManagedMap::Owned(_) => unreachable!()
                 };