aboutsummaryrefslogtreecommitdiff
path: root/src/data/graph.rs
diff options
context:
space:
mode:
authorzhguchev <zhguchev@arrival.com>2022-01-11 14:56:26 +0100
committerSébastien Crozet <developer@crozet.re>2022-01-23 18:01:50 +0100
commit536122e08066c762a0f6a1585c458f6c7a54bc2e (patch)
tree2cb19ed51bc0880b7de0815e25143c798c41438f /src/data/graph.rs
parent1608a1323ed76cdf33644cfea599cea715acf7a9 (diff)
downloadrapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.tar.gz
rapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.tar.bz2
rapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.zip
add defaults for the several structs
Diffstat (limited to 'src/data/graph.rs')
-rw-r--r--src/data/graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/graph.rs b/src/data/graph.rs
index 2dc7fbf..ea76bd9 100644
--- a/src/data/graph.rs
+++ b/src/data/graph.rs
@@ -125,7 +125,7 @@ impl<E> Edge<E> {
}
}
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug,Default)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
pub struct Graph<N, E> {
pub(crate) nodes: Vec<Node<N>>,