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
Fixed some clippy warning #1801
Conversation
(have some more to fix i am on it) |
Look like clippy is... misleading on this one, suppose it was warn based on regex not AST. use of `unwrap_or` followed by a function call
--> crates/proto/src/https/https_client_stream.rs:164:22
|
164 | .unwrap_or(Ok(crate::https::MIME_APPLICATION_DNS))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| Ok(crate::https::MIME_APPLICATION_DNS))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
= note: `-D clippy::or-fun-call` implied by `-D warnings` |
c594250
to
0108d1d
Compare
So for the failing option, would you mind adding this to the |
This fails cleanliness CI, maybe because the lint isn't available on the clippy version that we run in CI? |
Oh sorry didn't found time to check CI, will investigate today. @djc right I were in the future for this one will revert the commit and keep it for a later day. My version of clippy: EDIT: found time to do it.
|
Codecov Report
@@ Coverage Diff @@
## main #1801 +/- ##
=======================================
Coverage 80.40% 80.40%
=======================================
Files 177 177
Lines 18242 18242
=======================================
Hits 14668 14668
Misses 3574 3574
Continue to review full report at Codecov.
|
Thanks! |
This reverts commit 655a157.
Leaved the
println!
warnings.