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, 3 insertions, 4 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs
index 31f6823..4090701 100644
--- a/bin/src/main.rs
+++ b/bin/src/main.rs
@@ -71,7 +71,7 @@ fn _main() -> Result<(), StatixErr> {
71 let single_fix_result = fix::single(line, col, &src)?; 71 let single_fix_result = fix::single(line, col, &src)?;
72 if single_config.diff_only { 72 if single_config.diff_only {
73 let text_diff = TextDiff::from_lines(src.as_str(), &single_fix_result.src); 73 let text_diff = TextDiff::from_lines(src.as_str(), &single_fix_result.src);
74 let old_file = format!("{}", path_id); 74 let old_file = path_id.to_string();
75 let new_file = format!("{} [fixed]", path_id); 75 let new_file = format!("{} [fixed]", path_id);
76 println!( 76 println!(
77 "{}", 77 "{}",
@@ -96,8 +96,7 @@ fn _main() -> Result<(), StatixErr> {
96} 96}
97 97
98fn main() { 98fn main() {
99 match _main() { 99 if let Err(e) = _main() {
100 Err(e) => eprintln!("{}", e), 100 eprintln!("{}", e);
101 _ => (),
102 } 101 }
103} 102}