diff options
| author | blyxyas <blyxyas@gmail.com> | 2023-04-28 20:19:36 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2023-04-28 20:19:36 +0200 |
| commit | f37054b396cc67f2633d929c35cd88ecdb383ba8 (patch) | |
| tree | a7417cc4d48650dc42c2bb1d8cd9d0f587e60229 | |
| parent | 273c898aefeaec89b547f07bce98ad34aee8d38a (diff) | |
| download | rust-f37054b396cc67f2633d929c35cd88ecdb383ba8.tar.gz rust-f37054b396cc67f2633d929c35cd88ecdb383ba8.zip | |
Remove useless span magic
| -rw-r--r-- | clippy_lints/src/items_after_test_module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/items_after_test_module.rs b/clippy_lints/src/items_after_test_module.rs index 96097575c9c..b992d689aa9 100644 --- a/clippy_lints/src/items_after_test_module.rs +++ b/clippy_lints/src/items_after_test_module.rs @@ -74,7 +74,7 @@ impl LateLintPass<'_> for ItemsAfterTestModule { if mitem.has_name(sym::test); then { was_test_mod_visited = true; - test_mod_span = Some(module.spans.inner_span.with_lo(item.span.lo())); + test_mod_span = Some(item.span); } } } |
