cargo fmt
This commit is contained in:
@@ -69,7 +69,11 @@ pub fn value_to_string(value: &Value) -> Option<String> {
|
|||||||
|
|
||||||
pub fn read_txt(filename: &str) -> Result<Vec<String>, String> {
|
pub fn read_txt(filename: &str) -> Result<Vec<String>, String> {
|
||||||
let filepath = if filename.starts_with("./") {
|
let filepath = if filename.starts_with("./") {
|
||||||
CURRENT_EXE_PATH.join(filename).to_str().unwrap().to_string()
|
CURRENT_EXE_PATH
|
||||||
|
.join(filename)
|
||||||
|
.to_str()
|
||||||
|
.unwrap()
|
||||||
|
.to_string()
|
||||||
} else {
|
} else {
|
||||||
filename.to_string()
|
filename.to_string()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user