(&self)
| 134 | |
| 135 | impl TemplateRoot { |
| 136 | fn path(&self) -> &Path { |
| 137 | match self { |
| 138 | Self::TempDir((_tmp, Some(base))) => base, |
| 139 | Self::TempDir((tmp, None)) => tmp.path(), |
| 140 | Self::LocalDir(path) => path, |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | pub(crate) fn final_path(&self) -> PathBuf { |
| 145 | let path = self.path(); |
no outgoing calls