Rename the new functions to replace the old functions.
This commit is contained in:
@@ -8,7 +8,7 @@ enum WalkResult<'a> {
|
||||
FullyWalked(&'a dyn ContextElement),
|
||||
}
|
||||
|
||||
fn walk_path_from_single_level_borrow<'a, P, C>(context: &'a C, path: &[P]) -> WalkResult<'a>
|
||||
fn walk_path_from_single_level<'a, P, C>(context: &'a C, path: &[P]) -> WalkResult<'a>
|
||||
where
|
||||
P: Borrow<str>,
|
||||
C: Borrow<dyn ContextElement + 'a>,
|
||||
@@ -34,7 +34,7 @@ where
|
||||
WalkResult::FullyWalked(output)
|
||||
}
|
||||
|
||||
pub fn walk_path_combined<'a, B, P>(
|
||||
pub fn walk_path<'a, B, P>(
|
||||
breadcrumbs: &'a Vec<B>,
|
||||
path: &Vec<P>,
|
||||
) -> Result<&'a dyn ContextElement, WalkError>
|
||||
@@ -54,7 +54,7 @@ where
|
||||
.borrow()
|
||||
== "."
|
||||
{
|
||||
return match walk_path_from_single_level_borrow(
|
||||
return match walk_path_from_single_level(
|
||||
breadcrumbs
|
||||
.last()
|
||||
.expect("Breadcrumbs should never be empty"),
|
||||
@@ -68,7 +68,7 @@ where
|
||||
};
|
||||
}
|
||||
for context in breadcrumbs.iter().rev() {
|
||||
match walk_path_from_single_level_borrow(context, path) {
|
||||
match walk_path_from_single_level(context, path) {
|
||||
// If no walking was done at all, keep looping
|
||||
WalkResult::NoWalk => {}
|
||||
// If we partially walked then stop trying to find
|
||||
|
||||
Reference in New Issue
Block a user