Skip to content

Fix build warnings in the rust crate - #39

Closed
arthaud wants to merge 1 commit into
meta:mainfrom
arthaud:fix-rust-build-warnings
Closed

arthaud wants to merge 1 commit into
meta:mainfrom
arthaud:fix-rust-build-warnings

Conversation

@arthaud

@arthaud arthaud commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Summary:
A clean cargo build raises four warnings:

  • hash_set_impl only contains trait impls, so the pub use hash_set_impl::*; re-export brings in no names and triggers unused_imports. The mod declaration is kept so the impls stay in the crate.
  • PatriciaTree::iter and the two ReverseGraph::rev signatures elide a lifetime on &self while hiding it in the return type, which triggers mismatched_lifetime_syntaxes. Spell the hidden lifetime as '_.

No behavior change; cargo build --all-targets is now warning free and all tests pass.

Summary:
A clean `cargo build` raises four warnings:

- `hash_set_impl` only contains trait impls, so the `pub use hash_set_impl::*;`
  re-export brings in no names and triggers `unused_imports`. The `mod`
  declaration is kept so the impls stay in the crate.
- `PatriciaTree::iter` and the two `ReverseGraph::rev` signatures elide a
  lifetime on `&self` while hiding it in the return type, which triggers
  `mismatched_lifetime_syntaxes`. Spell the hidden lifetime as `'_`.

No behavior change; `cargo build --all-targets` is now warning free and all
tests pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 19, 2026
@arthaud arthaud closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant