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

Clean up some unused variable and unused result warnings #136

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

ronen
Copy link
Collaborator

@ronen ronen commented Aug 17, 2023

Kinda following up from #130...

Switch from .map_err().and_then() to match { }

This eliminates warnings about unused variables/result. Also I think makes it easier to read.

Also switch from .and_then(... Ok()) to .map() to be a little cleaner.

This eliminates warnings about unused variables/result.  Also I think
makes it easier to read.

Also switch from .and_then(... Ok()) to .map() to be a little cleaner.
Copy link
Member

@darioalessandro darioalessandro left a comment

Choose a reason for hiding this comment

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

lgtm

@darioalessandro darioalessandro merged commit 25422dd into main Aug 18, 2023
3 checks passed
@darioalessandro darioalessandro deleted the clean-unused branch August 18, 2023 03:10
BanjoFox pushed a commit to BanjoFox/videocall-rs that referenced this pull request Aug 18, 2023
…ion#136)

* Switch from .map_err().and_then() to match { }

This eliminates warnings about unused variables/result.  Also I think
makes it easier to read.

Also switch from .and_then(... Ok()) to .map() to be a little cleaner.

* cargo fmt
BanjoFox pushed a commit to BanjoFox/videocall-rs that referenced this pull request Aug 22, 2023
…ion#136)

* Switch from .map_err().and_then() to match { }

This eliminates warnings about unused variables/result.  Also I think
makes it easier to read.

Also switch from .and_then(... Ok()) to .map() to be a little cleaner.

* cargo fmt
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