diff options
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)] |