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:
parent
61b3a07666
commit
073a91d788
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue