Skip to content

Commit f37054b

Browse files
committed
Remove useless span magic
1 parent 273c898 commit f37054b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/items_after_test_module.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl LateLintPass<'_> for ItemsAfterTestModule {
7474
if mitem.has_name(sym::test);
7575
then {
7676
was_test_mod_visited = true;
77-
test_mod_span = Some(module.spans.inner_span.with_lo(item.span.lo()));
77+
test_mod_span = Some(item.span);
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)