diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-09-08 23:33:22 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-09-08 23:33:22 +0200 |
commit | c352fd1c6b5b7119dfa9cc8eb642aa3ee7127a01 (patch) | |
tree | be59e8c0e0ebfc673fef04c342837c2e41aec1ea /lockchain-core | |
parent | ddebbc0b7f45eaf07a2242fd91f1a92ee27099a9 (diff) |
Assorted code fixes
Diffstat (limited to 'lockchain-core')
-rw-r--r-- | lockchain-core/src/init.rs | 2 | ||||
-rw-r--r-- | lockchain-core/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lockchain-core/src/init.rs b/lockchain-core/src/init.rs index bf40518..0e666bb 100644 --- a/lockchain-core/src/init.rs +++ b/lockchain-core/src/init.rs @@ -75,6 +75,6 @@ impl Generator { V: Vault<B>, B: Body, { - V::new(self) + V::new(self).map(|b| *b) } } diff --git a/lockchain-core/src/lib.rs b/lockchain-core/src/lib.rs index 52139bb..bdcebdc 100644 --- a/lockchain-core/src/lib.rs +++ b/lockchain-core/src/lib.rs @@ -81,12 +81,12 @@ mod init; pub use self::crypto::PackedData; pub use self::meta::{MetaDomain, VaultMetadata}; pub use self::record::{EncryptedBody, Header, Payload, Record}; -pub use self::init::Generator; +pub use self::init::{VaultType, Generator}; /// Export commonly used types via the prelude pub mod prelude { pub use super::crypto::PackedData; pub use super::meta::{MetaDomain, VaultMetadata}; pub use super::record::{EncryptedBody, Header, Payload, Record}; - pub use super::init::Generator; + pub use super::init::{VaultType, Generator}; } |