working on two levels
This commit is contained in:
@@ -120,6 +120,14 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Walkable for str {
|
||||
type Output = str;
|
||||
|
||||
fn walk(&self, segment: &str) -> &str {
|
||||
panic!("Tried to walk down a str");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_walk_path() {
|
||||
let context: HashMap<&str, &str> = [
|
||||
|
||||
Reference in New Issue
Block a user