Repository navigation
chore: remove redundant imports, extern crates and the experimental feature - #316
Merged
Merged
Conversation
…eature The 2024 prelude already has TryFrom, TryInto and Future. The two test extern crate lines went away with the self::httpmock path they enabled. The experimental feature gated nothing. Enable redundant_imports and unused_extern_crates so these stay gone.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
FalkWoldmann
added a commit
to danieleades/httpmock
that referenced
this pull request
Sep 27, 2026
Also fixes what master broke without conflicts: gate the cookie readers now that httpmock#297 made cookies optional, drop the KeyValueOperator variants nothing constructs since httpmock#312 made matchers private, and remove a TryInto import the redundant_imports lint from httpmock#316 rejects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leftovers from a dead code sweep on nightly that #291 doesn't cover:
use super::*already provides (TryFrom,TryInto,Future, a duplicatehttp, and two test-only ones)extern crate httpmock;lines in two tests (one usedself::httpmock::…, now a plainuse httpmock::…)experimentalfeature, which gates nothing. Removing it is technically breaking for anyone who enables it, so it's in the 0.9.0 changelog.Also turns on
redundant_importsandunused_extern_crates, so CI fails if these come back. Both lints exist on 1.88, so MSRV is fine.#291 will need a one-line conflict fix in
src/common/util.rsafter this; it already has to merge master foradapter.rs.Unrelated:
tools/depends onhttpmockbut doesn't use it (nightly cargo warns). Left alone here.