turns out putting dyn everywhere fixes it
This commit is contained in:
		
							parent
							
								
									c094997032
								
							
						
					
					
						commit
						07e5c9f0af
					
				| @ -142,16 +142,14 @@ mod tests { | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     fn do_the_walk<'a>(context: &'a impl Walkable, path: &Vec<&str>) -> &'a dyn Walkable { | ||||
|     fn do_the_walk<'a>(context: &'a dyn Walkable, path: &Vec<&str>) -> &'a dyn Walkable { | ||||
|         let mut output = context; | ||||
| 
 | ||||
|         context.walk(path.first().unwrap()) | ||||
|         for elem in path.iter() { | ||||
|             output = context.walk(elem); | ||||
|         } | ||||
| 
 | ||||
|         // for elem in path.iter() {
 | ||||
|         //     output = context.walk(elem);
 | ||||
|         // }
 | ||||
| 
 | ||||
|         // output
 | ||||
|         output | ||||
|     } | ||||
| 
 | ||||
|     #[test] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander