Removed import_input
This should be left to the client crate, `settings::utils::read_file` is already here for that
This commit is contained in:
parent
18eb16e777
commit
c6baa46aca
17
src/lib.rs
17
src/lib.rs
@ -67,20 +67,3 @@ pub fn init() -> std::result::Result<(), log::SetLoggerError> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Import user input from a text file and return them as a String
|
|
||||||
///
|
|
||||||
/// # Arguments
|
|
||||||
///
|
|
||||||
/// * `path` - path to the file containing the user input
|
|
||||||
///
|
|
||||||
/// # Example
|
|
||||||
///
|
|
||||||
/// ```no_run
|
|
||||||
/// # use lang_evolve_core::import_input;
|
|
||||||
/// use std::path::Path;
|
|
||||||
/// let _input = import_input(Path::new("input.txt")).unwrap();
|
|
||||||
/// ```
|
|
||||||
pub fn import_input(path: &Path) -> Result<String> {
|
|
||||||
utils::read_file(&path)
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user