(path: &RepoPath)
| 38 | |
| 39 | impl SyntheticFilesystem { |
| 40 | fn index(path: &RepoPath) -> usize { |
| 41 | let bytes = path.as_bytes(); |
| 42 | let digits = &bytes[5..bytes.len() - 4]; |
| 43 | std::str::from_utf8(digits).unwrap().parse().unwrap() |
| 44 | } |
| 45 | |
| 46 | fn observation(&self, path: &RepoPath) -> ObservedFile { |
| 47 | let index = Self::index(path); |