Skip to content

Re-name semantic::Policy to Semantic#944

Open
tcharding wants to merge 2 commits into
rust-bitcoin:masterfrom
tcharding:push-rwptozvxwzuv
Open

Re-name semantic::Policy to Semantic#944
tcharding wants to merge 2 commits into
rust-bitcoin:masterfrom
tcharding:push-rwptozvxwzuv

Conversation

@tcharding
Copy link
Copy Markdown
Member

@tcharding tcharding commented May 13, 2026

First patch introduces use_self lint. Its massive, are you ok with that?

Second patch does the rename. For reference, this was prompted by the first item in #937 (comment)

Patch two is only 100 lines of red/green.

tcharding added 2 commits May 13, 2026 12:25
Tighten up the linting by enabling `use_self` and fix all warnings.

I got claude to do the fixes. It eventually found its way to using

cargo clippy --fix --allow-dirty --allow-staged --workspace \
--all-targets --all-features -- -D clippy::use-self
Rename the `semantic::Policy` to `semantic::Semantic`. Keep the
re-export at `Policy/mod.rs` (was an alias).

In the `semantic` module unit tests leave `StringPolicy` as it is.

Outside the `semantic` module remove the stutter; use `Semantic`
instead of `semantic::Semantic`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant