-
Notifications
You must be signed in to change notification settings - Fork 679
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
Apply clippy lints approx_constant
, assertions_on_constants
, assign_op_pattern
, and bool_assert_comparison
#5745
base: develop
Are you sure you want to change the base?
Apply clippy lints approx_constant
, assertions_on_constants
, assign_op_pattern
, and bool_assert_comparison
#5745
Conversation
…bool_assert_comparison throughout stacks-core Signed-off-by: Jacinta Ferrant <[email protected]>
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.
Made some style suggestions but everything looks correct
… into chore/clippy-assertions-assign-op-approx-constant
Signed-off-by: Jacinta Ferrant <[email protected]>
Signed-off-by: Jacinta Ferrant <[email protected]>
… into chore/clippy-assertions-assign-op-approx-constant
client.try_recv().unwrap(); | ||
let resolved_err = client.poll_lookup("www.google.com", 80).unwrap().unwrap(); | ||
assert!( | ||
format!("{resolved_err:?}").find("timed out").is_some(), |
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.
format!("{resolved_err:?}").find("timed out").is_some(), | |
format!("{resolved_err:?}").contains("timed out"), |
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf}; | |||
use std::sync::atomic::{AtomicU64, Ordering}; | |||
use std::sync::{mpsc, Arc}; | |||
use std::time::{Duration, Instant}; | |||
use std::{cmp, env, fs, io, thread}; | |||
use std::{cmp, env, fs, io, panic, thread}; |
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.
Is this necessary?
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.
Looks good, just had 2 minor comments.
No description provided.