Adding NotFound error type.
This commit is contained in:
@@ -212,6 +212,13 @@ fn new_walk_path<'a>(
|
||||
breadcrumbs: Vec<&'a dyn ContextElement>,
|
||||
path: &Vec<&str>,
|
||||
) -> Result<&'a dyn ContextElement, RenderError<'a>> {
|
||||
for context in breadcrumbs.iter().rev() {
|
||||
match walk_path_from_single_level(*context, path)? {
|
||||
WalkResult::NoWalk => {}
|
||||
WalkResult::PartialWalk => {}
|
||||
WalkResult::FullyWalked(_) => {}
|
||||
}
|
||||
}
|
||||
Err(RenderError::Generic("temp".to_owned()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user