bug(sdk): Fix type conversion recursion

The compiler doesn't complain about this, so I assumed it
was able to correctly resolve a conversion
`BundleFileType` -> `Murmur64` via their shared `From` impl: `u64`.

But it appears that is not the case, and the simple `t.into()` just
calls itself. So I need to do the conversion via the intermediary value
manually.
This commit is contained in:
Lucas Schwiderski 2023-01-31 09:19:14 +01:00
parent 61b3a07666
commit 073a91d788
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -397,7 +397,8 @@ impl From<BundleFileType> for u64 {
}
impl From<BundleFileType> for Murmur64 {
fn from(t: BundleFileType) -> Murmur64 {
t.into()
let hash: u64 = t.into();
Murmur64::from(hash)
}
}