chore(apb): track todo &str
This commit is contained in:
parent
6129973b13
commit
b6a17184eb
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ impl<T : super::Base> Node<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns id of object: url for link, id for object, None if empty or array
|
/// returns id of object: url for link, id for object, None if empty or array
|
||||||
|
// TODO return Option<&str> and avoid inner clone
|
||||||
pub fn id(&self) -> Option<String> {
|
pub fn id(&self) -> Option<String> {
|
||||||
match self {
|
match self {
|
||||||
Node::Empty => None,
|
Node::Empty => None,
|
||||||
|
|
Loading…
Reference in a new issue