Skip to content

Conversation

sanrodari
Copy link
Contributor

No description provided.

@bors bors closed this May 27, 2014
@bors bors merged commit 68455a1 into rust-lang:master May 27, 2014
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, xs can be used again, it has been reinitialized.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 18, 2025
This fixes an issue where clippy suggests passing a function that takes
no arguments as the first argument of `Result::map_or_else`. The
function needs to take one argument. Example that triggers the issue:
[Playground
link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=0b6f9bc7b6ab4dcd26745065544e0b8a)

Fixes rust-lang#10335.

changelog: [`option_if_let_else`]: fix incorrect suggestion when the
contents of an `Err` variant are ignored
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.

5 participants