Parcourir la source

Add a missing feature check.

whitequark il y a 7 ans
Parent
commit
e0cbe22556
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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!()
                 };