From f27d604d93ce583d4404e1874664e08382ea2f00 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 6 Jan 2023 23:42:28 +0800 Subject: Save before system restart. I am about to re-start my system, so I save before any crashes happen. --- graph/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graph/src/builder.rs') diff --git a/graph/src/builder.rs b/graph/src/builder.rs index 4a480a5..5505e4f 100644 --- a/graph/src/builder.rs +++ b/graph/src/builder.rs @@ -77,7 +77,7 @@ pub trait BuilderMut { fn from_graph_mut(graph: &mut Self::Graph) -> Self::ResultBuilder<'_>; /// Add a new vertex. - fn add_vertex(&mut self, label: Self::Label) -> Result; + fn add_vertex(&mut self, label: Self::Label) -> usize; /// Add an edge from the source to the target. fn add_edge(&mut self, source: usize, target: usize, label: Self::Label) -> Result<(), Error>; -- cgit v1.2.3-18-g5258