(root: PathBuf, source_file: Option<&Path>, import_name: &str)
| 12 | |
| 13 | impl ImportResultCacheKey { |
| 14 | fn create(root: PathBuf, source_file: Option<&Path>, import_name: &str) -> Self { |
| 15 | Self( |
| 16 | root, |
| 17 | format!( |
| 18 | "{}-{import_name}", |
| 19 | source_file.unwrap_or(Path::new("")).display() |
| 20 | ), |
| 21 | ) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | #[derive(Debug, Default)] |