cargo fmt

This commit is contained in:
DustInDark
2022-06-24 21:40:50 +09:00
parent 459e1f39ed
commit ad79d11fe3

View File

@@ -69,7 +69,11 @@ pub fn value_to_string(value: &Value) -> Option<String> {
pub fn read_txt(filename: &str) -> Result<Vec<String>, String> {
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 {
filename.to_string()
};