Allow missing docs on deprecated maps methods
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user