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

StdMOptMutator::new: remove unused type parameter #2695

Merged

Conversation

Mrmaxmeier
Copy link
Contributor

@Mrmaxmeier Mrmaxmeier commented Nov 14, 2024

I is unused in ::new and thus requires callers to explicitly specify any type as it can't be determined by type inference.

Clippy's extra_unused_type_parameters should pick this up, but is tuned a bit too conservative in order to avoid false positives AFAICT.

If the type parameter was deliberate in order to easily set the mutator's input type we could also add the missing type bound. Here, I'm letting type inference figure it out.. 🤷

Note: The CI failure seems like an unrelated flaky test.

`I` is unused in `::new` and thus requires callers to explicitly specify
any type as it can't be determined by type inference.

Clippy's `extra_unused_type_parameters` should pick this up, but is
tuned a bit too conservative in order to avoid false positives AFAICT.
@domenukk
Copy link
Member

Beautiful, thx!

@domenukk domenukk merged commit 8f320d4 into AFLplusplus:main Nov 14, 2024
100 of 102 checks passed
@Mrmaxmeier Mrmaxmeier deleted the mopt-new-remove-unused-type-parameter branch November 14, 2024 15:47
riesentoaster pushed a commit to riesentoaster/LibAFL that referenced this pull request Nov 21, 2024
`I` is unused in `::new` and thus requires callers to explicitly specify
any type as it can't be determined by type inference.

Clippy's `extra_unused_type_parameters` should pick this up, but is
tuned a bit too conservative in order to avoid false positives AFAICT.
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