use crate::oid;
use gix_error::ExnMessageResult;
impl oid {
#[inline]
pub fn verify(&self, expected: &oid) -> ExnMessageResult {
if self == expected {
Ok(())
} else {
Err(gix_error::corruption(format!("Hash was {self}, but should have been {expected}")).into())
}
}
}