Skip to content

Commit 104a391

Browse files
committed
Add ConfigObject::element() getter
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 8d44101 commit 104a391

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/object/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ impl ConfigObject {
5050
Ok(None)
5151
}
5252
}
53+
54+
/// Get the configuration element that the object wraps
55+
pub fn element(&self) -> &dyn ConfigElement {
56+
&*self.element
57+
}
5358
}
5459

5560
#[derive(Debug, thiserror::Error)]

0 commit comments

Comments
 (0)