We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debug
SourceText
2 parents 544e24a + cd196aa commit adcd2deCopy full SHA for adcd2de
clippy_utils/src/source.rs
@@ -215,6 +215,11 @@ impl fmt::Display for SourceText {
215
self.as_str().fmt(f)
216
}
217
218
+impl fmt::Debug for SourceText {
219
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
220
+ self.as_str().fmt(f)
221
+ }
222
+}
223
224
fn get_source_range(sm: &SourceMap, sp: Range<BytePos>) -> Option<SourceFileRange> {
225
let start = sm.lookup_byte_offset(sp.start);
0 commit comments