Move final crates to 2018 edition (#886)

This commit is contained in:
Dan Robertson
2019-01-29 10:02:29 +00:00
committed by Pierre Krieger
parent 073df709dd
commit fe4fc8c363
9 changed files with 14 additions and 11 deletions

View File

@ -21,8 +21,8 @@ use sha2::Digest;
use tiny_keccak::Keccak;
use unsigned_varint::{decode, encode};
pub use errors::{DecodeError, DecodeOwnedError, EncodeError};
pub use hashes::Hash;
pub use self::errors::{DecodeError, DecodeOwnedError, EncodeError};
pub use self::hashes::Hash;
// Helper macro for encoding input into output using sha1, sha2, tiny_keccak, or blake2
macro_rules! encode {
@ -276,7 +276,7 @@ pub fn to_hex(bytes: &[u8]) -> String {
#[cfg(test)]
mod tests {
use {Hash, Multihash};
use crate::{Hash, Multihash};
#[test]
fn rand_generates_valid_multihash() {