refactor(node): return Result<&T> from get aspect

This commit is contained in:
Nova
2022-10-29 07:32:51 -04:00
parent c6316b4e8b
commit 09a2572c3b
3 changed files with 4 additions and 3 deletions

View File

@@ -209,4 +209,5 @@ pub fn find_field(client: &Client, path: &str) -> Result<Arc<Field>> {
client
.get_node("Field", path)?
.get_aspect("Field", "info", |n| &n.field)
.cloned()
}