diff options
author | JSDurand <mmemmew@gmail.com> | 2023-01-06 23:42:28 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-01-06 23:42:28 +0800 |
commit | f27d604d93ce583d4404e1874664e08382ea2f00 (patch) | |
tree | 6fa8df26af954e94f3604ffabde4961ee8108c41 /graph/src/builder.rs | |
parent | 7dd4935230e303aef8d295d992239d59d95b32d7 (diff) |
Save before system restart.
I am about to re-start my system, so I save before any crashes
happen.
Diffstat (limited to 'graph/src/builder.rs')
-rw-r--r-- | graph/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<usize, Error>; + 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>; |