aboutsummaryrefslogtreecommitdiff
path: root/lockchain-files/src/create.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-09-15 20:47:08 +0100
committerKatharina Fey <kookie@spacekookie.de>2018-09-15 20:47:08 +0100
commit95f68641e61fb633eb4f588160572b5e0371e139 (patch)
treef3f0c132cfb769542576c6d9cb875157f06fa2e5 /lockchain-files/src/create.rs
parent87cb39050d938e01b7b26633dab3d141737330ed (diff)
Restructuring internal layout and working on Generator intergration
Diffstat (limited to 'lockchain-files/src/create.rs')
-rw-r--r--lockchain-files/src/create.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/lockchain-files/src/create.rs b/lockchain-files/src/create.rs
index 6c5255a..aa8c0cd 100644
--- a/lockchain-files/src/create.rs
+++ b/lockchain-files/src/create.rs
@@ -5,10 +5,9 @@ use lcc::errors::VaultError;
use lcc::{traits::Body, Generator};
use std::collections::HashMap;
-use ::FileVault;
-use ::config::{VaultConfig, ConfigError};
-use ::fs::{Filesystem, FileType};
-
+use config::{ConfigError, VaultConfig};
+use fs::{FileType, Filesystem};
+use FileVault;
impl<T: Body> FileVault<T> {
/// A small utility to create a new file vault
@@ -17,7 +16,7 @@ impl<T: Body> FileVault<T> {
let fs = Filesystem::new(location, name);
fs.scaffold().map_err(|_| VaultError::FailedCreation)?;
-
+
let cfg = VaultConfig::new(&gen);
// Ok(Box::new(
@@ -37,8 +36,6 @@ impl<T: Body> FileVault<T> {
}
fn get_path(gen: &Generator) -> Result<(&str, &str), VaultError> {
-
-
Err(VaultError::IncompleteGenerator)
}
}