This commit is contained in:
Michael Vines
2020-12-13 17:26:34 -08:00
parent 0d139d7ef3
commit 7143aaa89b
102 changed files with 543 additions and 499 deletions

View File

@@ -137,6 +137,7 @@ impl AbiDigester {
self.update(&[&label]);
}
#[allow(clippy::unnecessary_wraps)]
fn digest_primitive<T: Serialize>(mut self) -> Result<AbiDigester, DigestError> {
self.update_with_type::<T>("primitive");
Ok(self)
@@ -164,6 +165,7 @@ impl AbiDigester {
self.create_child().digest_data(v).map(|_| ())
}
#[allow(clippy::unnecessary_wraps)]
fn check_for_enum(
&mut self,
label: &'static str,