Remove unnecessary conversions for DiversifierIndex

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2021-03-09 07:39:25 +13:00 committed by Jack Grigg
parent 57c64922f6
commit cfaa61ab14
1 changed files with 1 additions and 3 deletions

View File

@ -180,8 +180,6 @@ macro_rules! di_from {
}
};
}
di_from!(u8);
di_from!(u16);
di_from!(u32);
di_from!(u64);
di_from!(usize);
@ -189,7 +187,7 @@ di_from!(usize);
impl DiversifierKey {
/// Returns the diversifier at index 0.
pub fn default_diversifier(&self) -> Diversifier {
self.get(0u8)
self.get(0u32)
}
/// Returns the diversifier at the given index.