(
&mut self,
hash: &Hash,
)
| 172 | |
| 173 | impl ClosureChangeSource for LocalClosureSource<'_> { |
| 174 | fn get( |
| 175 | &mut self, |
| 176 | hash: &Hash, |
| 177 | ) -> Result<Option<atomic_core::change::Change>, BindingClosureError> { |
| 178 | if !self.repo.has_change(hash) { |
| 179 | return Ok(None); |
| 180 | } |
| 181 | self.repo |
| 182 | .load_change(hash) |
| 183 | .map(Some) |
| 184 | .map_err(|error| BindingClosureError::Quarantine { |
| 185 | hash: hash.to_base32(), |
| 186 | source: BindingPackError::ChangeDecode { |
| 187 | key: hash.to_base32(), |
| 188 | reason: error.to_string(), |
| 189 | }, |
| 190 | }) |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | fn pristine_map(error: atomic_core::pristine::PristineError) -> RepositoryError { |
nothing calls this directly
no test coverage detected