Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapshots: convert_spv: Don't validate the module twice. #2502

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

jimblandy
Copy link
Member

Remove the call to Validator::validate in convert_spv, since it directly follows the call to check_targets, which also called Validator::validate.

The only difference between the two is whether Parameters::god_mode is respected, but this difference doesn't seem to have been deliberate: at the time the call to check_targets was added to convert_spv (5f21cf3, 2021-02-17), the two calls were exactly the same.

Remove the call to `Validator::validate` in `convert_spv`, since it
directly follows the call to `check_targets`, which also called
`Validator::validate`.

The only difference between the two is whether `Parameters::god_mode`
is respected, but this difference doesn't seem to have been
deliberate: at the time the call to `check_targets` was added to
`convert_spv` (5f21cf3, 2021-02-17), the two calls were exactly the
same.
@jimblandy jimblandy requested a review from teoxoy September 24, 2023 23:44
@teoxoy teoxoy merged commit 711aa1a into gfx-rs:master Sep 25, 2023
5 checks passed
@jimblandy jimblandy deleted the snapshots-spv-redundant-validation branch September 25, 2023 18:25
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.

2 participants