Skip to content

Remove unnecessary casts - #352

Merged
cuviper merged 1 commit into
rust-num:mainfrom
FranciscoTGouveia:remove-casts
Aug 12, 2026
Merged

Remove unnecessary casts#352
cuviper merged 1 commit into
rust-num:mainfrom
FranciscoTGouveia:remove-casts

Conversation

@FranciscoTGouveia

Copy link
Copy Markdown
Contributor

I believe these casts can be safely removed, as the source type is already the target type.

For reference, these changes were found by an optimizer developed as a research project.

CC @nunoplopes

Comment thread src/bigint/bits.rs Outdated
@cuviper

cuviper commented Aug 12, 2026

Copy link
Copy Markdown
Member

Thanks!

@cuviper
cuviper enabled auto-merge August 12, 2026 02:52
@cuviper
cuviper added this pull request to the merge queue Aug 12, 2026
Merged via the queue into rust-num:main with commit 9c6ce31 Aug 12, 2026
4 checks passed
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