Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codectable): set correct dependencies
Some hashers depend on the `Digest` trait, which needs to be imported and hency relied upon correctly. Without this change you might get an error like this: error[E0599]: no method named `update` found for struct `CoreWrapper` in the current scope --> /home/vmx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/multihash-codetable-0.1.1/src/hasher_impl.rs:168:28 | 168 | self.state.update(input) | ^^^^^^ method not found in `CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<..., ...>, ...>, ...>>` ... 208 | derive_rustcrypto_hasher!(::sha2::Sha256, Sha2_256, 32); | ------------------------------------------------------- in this macro invocation | = note: the full type name has been written to '/home/vmx/src/pl/codec-fixtures/rust/target/debug/deps/multihash_codetable-9512ee5a3ec79ea2.long-type-14493071964420482871.txt' = help: items from traits can only be used if the trait is in scope = note: this error originates in the macro `derive_rustcrypto_hasher` (in Nightly builds, run with -Z macro-backtrace for more info) help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: | 208 + use multihash_derive::Hasher; | 208 + use sha2::Digest; | 208 + use sha2::digest::DynDigest; | 208 + use sha2::digest::Update;
- Loading branch information