-
Notifications
You must be signed in to change notification settings - Fork 41
Removes extra usages of let _ = #937
New issue
Have a question about this project? Sign up for a free GitHub a 8000 ccount 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
Removes extra usages of let _ = #937
Conversation
Codecov Report
@@ Coverage Diff @@
## main #937 +/- ##
==========================================
- Coverage 82.09% 81.24% -0.85%
==========================================
Files 37 37
Lines 3027 3077 +50
==========================================
+ Hits 2485 2500 +15
- Misses 542 577 +35
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Relates to #826 (whi 8000 ch can probably be closed in favor of this?) |
closing |
…prove-let-underscore
…erscore' into wip-code-quality-improve-let-underscore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Fixes #756
This PR reduces the extra usage of
let _ =
.The function call
func_with_result
produces warning like followingTo suppress the warning, developer used
let _ =
. Our goal is to reduce this noise and create clean coding practice. To achieve the same we are following the below strategy, where we are chaining the result withunwrap_or_else
when we don't bother about theResult
returned.Screenshots (optional)
PR Checklist
Code Contributions
cargo build --all-targets
successfully.cargo test --workspace
and everything passes.rustup update
.