-
Notifications
You must be signed in to change notification settings - Fork 13.3k
cargotest: fix clippy warnings #75795
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
Conversation
Fixes clippy::redundant_static_lifetimes and clippy::toplevel_ref_arg I also replaced some .expect("") calls with .unwrap()s since there was no message passed by the .expect() anyway.
Updates src/tools/cargo. cc @ehuss |
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @Dylan-DPC @bors r+ rollup |
📌 Commit 69f9639 has been approved by |
let out_dir = Path::new(&args[2]); | ||
let ref cargo = Path::new(cargo); | ||
let cargo = &Path::new(cargo); |
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.
Path::new
returns a &Path
already
let cargo = &Path::new(cargo); | |
let cargo = Path::new(cargo); |
☀️ Test successful - checks-actions, checks-azure |
Fixes clippy::redundant_static_lifetimes and clippy::toplevel_ref_arg
I also replaced some .expect("") calls with .unwrap()s since there was no message passed by the .expect() anyway.