From f12fae4479c5b97ab37823d7aa58d9156e2fc3ad Mon Sep 17 00:00:00 2001 From: Katharina Date: Mon, 22 Apr 2019 02:02:08 +0200 Subject: Updating crates to 2018 edition (#9) * Updating main README * Updating lock file * Updating crate ecosystem to Rust 2018 edition --- lockchain-core/src/crypto/data.rs | 5 +++-- lockchain-core/src/crypto/mod.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lockchain-core/src/crypto') diff --git a/lockchain-core/src/crypto/data.rs b/lockchain-core/src/crypto/data.rs index 2ee8a9a..f1ed15c 100644 --- a/lockchain-core/src/crypto/data.rs +++ b/lockchain-core/src/crypto/data.rs @@ -1,7 +1,8 @@ -use traits::AutoEncoder; +use crate::traits::AutoEncoder; +use serde::{Serialize, Deserialize}; /// Representation of encrypted data as an enecoded format -/// +/// /// Includes all cryptographic state primitives that are /// required to send the data over a network and decrypt on /// the other side of a pipe. diff --git a/lockchain-core/src/crypto/mod.rs b/lockchain-core/src/crypto/mod.rs index 2090e69..6a1c45e 100644 --- a/lockchain-core/src/crypto/mod.rs +++ b/lockchain-core/src/crypto/mod.rs @@ -6,7 +6,7 @@ /// We re-export keybob's API here mod keys { pub use keybob::{Key, KeyType}; - use traits::{AutoEncoder, Encryptable}; + use crate::traits::{AutoEncoder, Encryptable}; impl AutoEncoder for Key {} impl AutoEncoder for KeyType {} -- cgit v1.2.3