usecrate::oid;usegix_error::Result;imploid{/// Verify that `self` matches the `expected` object ID.
////// Returns an error classified as [`gix_error::Class::Corruption`] containing both object IDs if they differ.
#[inline]pubfnverify(&self, expected:&oid)-> Result{ifself== expected {Ok(())}else{Err(gix_error::message!("Hash was {self}, but should have been {expected}").corrupted_error())}}}