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

Added Result filter methods #224

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

brendanmaguire
Copy link
Contributor

@brendanmaguire brendanmaguire commented Aug 27, 2024

Also:

  • Added pipeable functions for some methods that were missing them
  • Added tests for Result#map_error
  • Added tests for piping functions

@dbrattli
Copy link
Owner

Could you btw also add the function in addition to the method. All the methods can be used as "loose" functions to be used with pipe instead of method chaining. This should also be fixed for merge, or_else and or_else_with

@brendanmaguire
Copy link
Contributor Author

Ah, missed that. I will update this PR later today

* Added pipeable functions for some methods that were missing them
* Added tests for `Result#map_error`
* Added tests for piping functions
Copy link
Owner

@dbrattli dbrattli left a comment

Choose a reason for hiding this comment

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

Nice! Thanks you for adding!

@dbrattli dbrattli merged commit 65cd3a9 into dbrattli:main Aug 29, 2024
3 checks passed
@brendanmaguire brendanmaguire deleted the result-filter-methods branch August 30, 2024 07:46
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