(path: &Path)
| 13 | }; |
| 14 | |
| 15 | pub fn deque_from_path(path: &Path) -> VecDeque<String> { |
| 16 | let mut deque = VecDeque::new(); |
| 17 | |
| 18 | for component in path.components() { |
| 19 | if let Some(part) = component.as_os_str().to_str() { |
| 20 | deque.push_back(part.to_owned()); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | deque |
| 25 | } |
| 26 | |
| 27 | pub struct Repo { |
| 28 | path: PathBuf, |
no outgoing calls
no test coverage detected