Skip to content

Conversation

@WaterWhisperer
Copy link
Contributor

Summary

clean up some allow(dead_code) statements now are unnecessary

Vector configuration

How did you test this PR?

cargo clippy and cargo test

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Related: #23659

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • make fmt
      • make check-clippy (if there are failures it's possible some of them can be fixed with make clippy-fix)
      • make test
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run make build-licenses to regenerate the license inventory and commit the changes (if any). More details here.

@WaterWhisperer WaterWhisperer requested a review from a team as a code owner December 11, 2025 15:33
@github-actions github-actions bot added the domain: transforms Anything related to Vector's transform components label Dec 11, 2025
@thomasqueirozb
Copy link
Contributor

thomasqueirozb commented Dec 11, 2025

Hi @WaterWhisperer. This fails when running cargo check --tests --bin vector --no-default-features.
We have a check that runs for hours and that's why these allows are there. You can run it locally too: cargo vdev check component-features (again, this will take a long while). If I were testing that this change works for all features I'd start running with --no-default-features and the features that use that specific function and another feature that doesn't.

@thomasqueirozb thomasqueirozb added the meta: awaiting author Pull requests that are awaiting their author. label Dec 11, 2025
@github-actions github-actions bot removed the meta: awaiting author Pull requests that are awaiting their author. label Dec 11, 2025
@WaterWhisperer
Copy link
Contributor Author

Hi @WaterWhisperer. This fails when running cargo check --tests --bin vector --no-default-features. We have a check that runs for hours and that's why these allows are there. You can run it locally too: cargo vdev check component-features (again, this will take a long while). If I were testing that this change works for all features I'd start running with --no-default-features and the features that use that specific function and another feature that doesn't.

Thanks for the comments. I've solved and now can pass.

@github-actions github-actions bot removed the domain: transforms Anything related to Vector's transform components label Dec 11, 2025
@thomasqueirozb thomasqueirozb added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Dec 11, 2025
@thomasqueirozb thomasqueirozb changed the title chore: clean up some allow statements chore(dev): clean up some allow statements Dec 11, 2025
Copy link
Contributor

@thomasqueirozb thomasqueirozb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran features check locally and these didn't pop up. Thanks!

@thomasqueirozb thomasqueirozb added the meta: awaiting author Pull requests that are awaiting their author. label Dec 11, 2025
@thomasqueirozb thomasqueirozb added this pull request to the merge queue Dec 11, 2025
Merged via the queue into vectordotdev:master with commit d2771c3 Dec 11, 2025
65 of 69 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
@WaterWhisperer WaterWhisperer deleted the clean-up branch December 12, 2025 04:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

meta: awaiting author Pull requests that are awaiting their author. no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants