aboutsummaryrefslogtreecommitdiff
path: root/bin/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/src/main.rs')
-rw-r--r--bin/src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs
index 9e9c8ac..c5d0626 100644
--- a/bin/src/main.rs
+++ b/bin/src/main.rs
@@ -60,7 +60,12 @@ fn _main() -> Result<(), StatixErr> {
60 let src = if let Some(path) = &single_config.target { 60 let src = if let Some(path) = &single_config.target {
61 std::fs::read_to_string(&path).map_err(SingleFixErr::InvalidPath)? 61 std::fs::read_to_string(&path).map_err(SingleFixErr::InvalidPath)?
62 } else { 62 } else {
63 io::stdin().lock().lines().map(|l| l.unwrap()).collect::<Vec<String>>().join("\n") 63 io::stdin()
64 .lock()
65 .lines()
66 .map(|l| l.unwrap())
67 .collect::<Vec<String>>()
68 .join("\n")
64 }; 69 };
65 70
66 let path_id = if let Some(path) = &single_config.target { 71 let path_id = if let Some(path) = &single_config.target {