diff --git a/src/databases/json.rs b/src/databases/json.rs index 1cdf75b..4b768c6 100644 --- a/src/databases/json.rs +++ b/src/databases/json.rs @@ -14,6 +14,11 @@ use rand::{OsRng, Rng}; const DATABASE_VERSION: u8 = 1; +pub struct JsonDatabase { + file_path: PathBuf, + secret_fn: &'static Fn() -> String, +} + // Database implementation for JSON database impl Database for JsonDatabase { fn get_applications(&self) -> HashMap { @@ -39,11 +44,6 @@ struct DatabaseContentSchema { applications: HashMap, } -pub struct JsonDatabase { - file_path: PathBuf, - secret_fn: &'static Fn() -> String, -} - const IV_SIZE: usize = 16; const KEY_SIZE: usize = 32; impl JsonDatabase {