summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/src/qualified_name.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/rust/src/qualified_name.rs b/rust/src/qualified_name.rs
index fc362cf6..62da86b8 100644
--- a/rust/src/qualified_name.rs
+++ b/rust/src/qualified_name.rs
@@ -35,7 +35,7 @@ use std::ops::{Index, IndexMut};
/// let qn = QualifiedName::new_with_separator(["a", "b", "c"], ".");
/// assert_eq!(qn.to_string(), "a.b.c");
/// ```
-#[derive(Default, Debug, Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
+#[derive(Debug, Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
pub struct QualifiedName {
// TODO: Make this Option<String> where default is "::".
pub separator: String,
@@ -177,6 +177,12 @@ impl QualifiedName {
}
}
+impl Default for QualifiedName {
+ fn default() -> Self {
+ Self::new(Vec::<String>::new())
+ }
+}
+
impl From<String> for QualifiedName {
fn from(value: String) -> Self {
Self {