Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

few unwrap removes #429

Merged
merged 3 commits into from
Sep 18, 2023
Merged

few unwrap removes #429

merged 3 commits into from
Sep 18, 2023

Conversation

chris-ha458
Copy link
Contributor

map_or can be used instead of map()..unwrap_or()

@philpax
Copy link
Collaborator

philpax commented Sep 18, 2023

It would be nice to use is_some_and, but that's not in our MSRV. I'll take this for now.

@philpax philpax merged commit c6630d4 into rustformers:main Sep 18, 2023
14 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants