about summary refs log tree commit diff
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2023-04-28 20:19:36 +0200
committerblyxyas <blyxyas@gmail.com>2023-04-28 20:19:36 +0200
commitf37054b396cc67f2633d929c35cd88ecdb383ba8 (patch)
treea7417cc4d48650dc42c2bb1d8cd9d0f587e60229
parent273c898aefeaec89b547f07bce98ad34aee8d38a (diff)
downloadrust-f37054b396cc67f2633d929c35cd88ecdb383ba8.tar.gz
rust-f37054b396cc67f2633d929c35cd88ecdb383ba8.zip
Remove useless span magic
-rw-r--r--clippy_lints/src/items_after_test_module.rs2
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);
                         }
                     }
                 }