From ad79d11fe338066a53d860e6f88646fa6b1c283b Mon Sep 17 00:00:00 2001 From: DustInDark Date: Fri, 24 Jun 2022 21:40:50 +0900 Subject: [PATCH] cargo fmt --- src/detections/utils.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/detections/utils.rs b/src/detections/utils.rs index c534339a..a536d167 100644 --- a/src/detections/utils.rs +++ b/src/detections/utils.rs @@ -69,7 +69,11 @@ pub fn value_to_string(value: &Value) -> Option { pub fn read_txt(filename: &str) -> Result, 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() };