Look up the hash we recorded for a destination, if we installed it.
(&self, dst: &Path)
| 160 | |
| 161 | /// Look up the hash we recorded for a destination, if we installed it. |
| 162 | pub fn recorded_hash(&self, dst: &Path) -> Option<&str> { |
| 163 | self.files |
| 164 | .iter() |
| 165 | .find(|f| f.dst == dst) |
| 166 | .map(|f| f.blake3.as_str()) |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | /// Blake3 hex digest of a file's contents. |
no test coverage detected