aboutsummaryrefslogtreecommitdiff
path: root/bin/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-28 03:20:36 +0100
committerAkshay <[email protected]>2021-10-28 03:20:36 +0100
commit3c9a675b9d776bf2210803d582e9af88f9df2631 (patch)
tree6b3b88fe4040cc904922b4b084442dbcf20495ae /bin/src/main.rs
parent8eccf15964e09c2e024710512e671c6b1b88e885 (diff)
fix fp with manual_inherit and manual_inherit_from
the lint also needed to validate if the length of the path component was exactly one, and not just check if the first component matches the value.
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 {