aboutsummaryrefslogtreecommitdiff
path: root/bin/src/main.rs
diff options
context:
space:
mode:
authorfigsoda <[email protected]>2021-11-02 02:34:22 +0000
committerfigsoda <[email protected]>2021-11-02 02:34:22 +0000
commit831bd7e91d1f97f565d6ea15d816e638a983ad00 (patch)
treec042af6b11ff77ac462c19f84bff748f210729cc /bin/src/main.rs
parent90ea9335b55efb38802a2983a58580b3bc568c5f (diff)
apply clippy lints
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}