Added functions to import and export settings and refactoring

This commit is contained in:
2020-03-27 18:25:20 +01:00
parent ff95cb05eb
commit 2e0c16e97c
4 changed files with 118 additions and 28 deletions

View File

@@ -10,7 +10,7 @@ use simplelog::*;
#[cfg(test)]
mod tests;
mod settings;
pub mod settings;
use settings::utils;
#[allow(dead_code)]
@@ -39,7 +39,6 @@ pub fn init() -> std::result::Result<(), log::SetLoggerError> {
}
}
#[allow(dead_code)]
fn import_words(path: PathBuf) -> Result<String> {
pub fn import_input(path: PathBuf) -> Result<String> {
utils::read_file(&path)
}