Allow missing docs on deprecated maps methods

This commit is contained in:
2026-07-28 22:56:51 +02:00
parent 08b2c4db65
commit 9a1e2faa9a
+4
View File
@@ -39,10 +39,12 @@ impl<V: Copy, T: Clone> VertexMap<V, T> {
}
#[deprecated(since = "0.2.2", note = "use 'capacity' instead")]
#[allow(missing_docs)]
pub fn len(&self) -> usize {
self.capacity()
}
#[allow(missing_docs)]
pub fn sync<G: GraphTopology<Vertex = V>>(&mut self, graph: &G) {
self.inner.resize(graph.vertex_capacity());
}
@@ -94,10 +96,12 @@ impl<E: Copy, T: Clone> EdgeMap<E, T> {
}
#[deprecated(since = "0.2.2", note = "use 'capacity' instead")]
#[allow(missing_docs)]
pub fn len(&self) -> usize {
self.capacity()
}
#[allow(missing_docs)]
pub fn sync<G: GraphTopology<Edge = E>>(&mut self, graph: &G) {
self.inner.resize(graph.edge_capacity());
}