(oid: &GitOid)
| 178 | } |
| 179 | |
| 180 | fn git2_oid(oid: &GitOid) -> Result<git2::Oid, BindingVerificationError> { |
| 181 | git2::Oid::from_bytes(oid.as_bytes()).map_err(|error| BindingVerificationError::Git { |
| 182 | message: error.to_string(), |
| 183 | }) |
| 184 | } |
| 185 | |
| 186 | /// Verification failures: the binding does not match the Git object database. |
| 187 | #[derive(Debug, thiserror::Error)] |
no test coverage detected