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

Remove unused Option.or_{default,zero} and a minor cleanup #9279

Merged
merged 2 commits into from
Sep 19, 2013

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Sep 18, 2013

Some(5).or_{default,zero} can be easily replaced with Some(Some(5).unwrap_or_default()).

bors added a commit that referenced this pull request Sep 19, 2013
`Some(5).or_{default,zero}` can be easily replaced with `Some(Some(5).unwrap_or_default())`.
@bors bors closed this Sep 19, 2013
@bors bors merged commit 1a90f24 into rust-lang:master Sep 19, 2013
@erickt
Copy link
Contributor Author

erickt commented Sep 20, 2013

@alexcrichton: You are a saint.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 11, 2022
chore: a few small improvements to code quality

Some improvements:
- Simplify implementation of `is_unit_type`
- Use slice matching to destruct `Call` or `MethodCall` whenever possible

changelog: none

r? `@flip1995`
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.

3 participants