Merge Cant and Wont Walk.

This commit is contained in:
Tom Alexander
2020-05-09 13:51:02 -04:00
parent 2108f5cace
commit 7d63d6ef7b
3 changed files with 4 additions and 17 deletions

View File

@@ -116,7 +116,7 @@ impl Walkable for serde_json::Value {
serde_json::Value::Object(obj) => {
obj.get(segment)
.map(|val| val as _)
.ok_or(RenderError::WontWalk {
.ok_or(RenderError::CantWalk {
segment: segment.to_string(),
elem: self,
})