Address various clippy lints, improve comments

This commit is contained in:
Paul Hauner
2019-04-29 14:04:52 +10:00
parent 52695c29e8
commit a90bbbfd82
4 changed files with 35 additions and 27 deletions

View File

@@ -19,6 +19,7 @@ macro_rules! impl_for_bitsize {
HASHSIZE / ($bit_size / 8)
}
#[allow(clippy::cast_lossless)]
fn tree_hash_root(&self) -> Vec<u8> {
int_to_bytes32(*self as u64)
}