Skip to content

chore: drop redundant std imports from inner tests mod.rs (§6.1 outermost) - #42

Merged
vshengbro merged 1 commit into
masterfrom
chore/tests-mod-outermost-std
Oct 9, 2026
Merged

vshengbro merged 1 commit into
masterfrom
chore/tests-mod-outermost-std

Conversation

@vshengbro

Copy link
Copy Markdown
Member

type/tests/mod.rs (the outermost tests root) already imports std::mem in its std block; the inner content_type/mod.rs and http_version/mod.rs reach it through their use super::*; chains. The per-inner-file use std::mem; added in #41 was redundant and placed at the wrong level — §6.1 / check 28: a sub-mod.rs must not import std directly. fn.rs files keep the local-use removal from #41 (that was the actual check-26 fix).

Local: check 26/28 = 0 violations, http-type 304 tests pass, fmt clean.

@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Oct 9, 2026
@vshengbro
vshengbro merged commit cc24d6a into master Oct 9, 2026
8 checks passed
@vshengbro
vshengbro deleted the chore/tests-mod-outermost-std branch October 9, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant