Added functions to import and export settings and refactoring
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user