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

correct suggestion for redundant_closure lint in a no_std environment #13896

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lapla-cogito
Copy link
Contributor

@lapla-cogito lapla-cogito commented Dec 29, 2024

changelog: [redundant_closure]: correct suggestion in a no_std environment

fix #13895

This PR suggests to use alloc::vec::Vec::new in a no_std environment.

@rustbot
Copy link
Collaborator

rustbot commented Dec 29, 2024

r? @Jarcho

rustbot has assigned @Jarcho.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 29, 2024
clippy_lints/src/eta_reduction.rs Outdated Show resolved Hide resolved
tests/ui/eta_nostd.rs Outdated Show resolved Hide resolved
@lapla-cogito
Copy link
Contributor Author

r? clippy

@rustbot rustbot assigned flip1995 and unassigned Jarcho Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redundant_closure makes incorrect suggestion
5 participants