diff options
author | figsoda <[email protected]> | 2021-11-02 02:34:22 +0000 |
---|---|---|
committer | figsoda <[email protected]> | 2021-11-02 02:34:22 +0000 |
commit | 831bd7e91d1f97f565d6ea15d816e638a983ad00 (patch) | |
tree | c042af6b11ff77ac462c19f84bff748f210729cc /bin/src/traits.rs | |
parent | 90ea9335b55efb38802a2983a58580b3bc568c5f (diff) |
apply clippy lints
Diffstat (limited to 'bin/src/traits.rs')
-rw-r--r-- | bin/src/traits.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/src/traits.rs b/bin/src/traits.rs index a8ec70f..303d12d 100644 --- a/bin/src/traits.rs +++ b/bin/src/traits.rs | |||
@@ -101,8 +101,8 @@ fn write_errfmt<T: Write>( | |||
101 | let path = vfs.file_path(file_id); | 101 | let path = vfs.file_path(file_id); |
102 | for report in lint_result.reports.iter() { | 102 | for report in lint_result.reports.iter() { |
103 | for diagnostic in report.diagnostics.iter() { | 103 | for diagnostic in report.diagnostics.iter() { |
104 | let line = line(diagnostic.at.start(), &src); | 104 | let line = line(diagnostic.at.start(), src); |
105 | let col = column(diagnostic.at.start(), &src); | 105 | let col = column(diagnostic.at.start(), src); |
106 | writeln!( | 106 | writeln!( |
107 | writer, | 107 | writer, |
108 | "{filename}>{linenumber}:{columnnumber}:{errortype}:{errornumber}:{errormessage}", | 108 | "{filename}>{linenumber}:{columnnumber}:{errortype}:{errornumber}:{errormessage}", |
@@ -131,7 +131,6 @@ mod json { | |||
131 | use lib::Severity; | 131 | use lib::Severity; |
132 | use rnix::TextRange; | 132 | use rnix::TextRange; |
133 | use serde::Serialize; | 133 | use serde::Serialize; |
134 | use serde_json; | ||
135 | use vfs::ReadOnlyVfs; | 134 | use vfs::ReadOnlyVfs; |
136 | 135 | ||
137 | #[derive(Serialize)] | 136 | #[derive(Serialize)] |