Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,6 @@ workspace = true
[workspace.lints.clippy]
cloned_instead_of_copied = "warn"
cloned_ref_to_slice_refs = "warn"
explicit_into_iter_loop = "warn"
implicit_clone = "warn"
semicolon_if_nothing_returned = "warn"
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ pub fn run_command(cmd: Command) -> Result<i32> {
Command::DebugPreprocessorCacheEntries => {
trace!("Command::DebugPreprocessorCacheEntries");
let entries_dir = default_disk_cache_dir().join("preprocessor");
for entry in WalkDir::new(entries_dir).sort_by_file_name().into_iter() {
for entry in WalkDir::new(entries_dir).sort_by_file_name() {
let preprocessor_cache_entry_file = entry?;
let path = preprocessor_cache_entry_file.path();
if !path.is_file() {
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ impl pkg::InputsPackager for RustInputsPackager {
};

let mut tar_inputs = vec![];
for input_path in inputs.into_iter() {
for input_path in inputs {
let input_path = pkg::simplify_path(&input_path)?;
if let Some(ext) = input_path.extension() {
if !super::CAN_DIST_DYLIBS && ext == DLL_EXTENSION {
Expand Down Expand Up @@ -2086,7 +2086,7 @@ impl pkg::InputsPackager for RustInputsPackager {
// we've been able to use a dependency searcher then we can filter down just candidates for that
// crate, otherwise we need to send everything.
let mut tar_crate_libs = vec![];
for crate_link_path in crate_link_paths.into_iter() {
for crate_link_path in crate_link_paths {
let crate_link_path = pkg::simplify_path(&crate_link_path)?;
let dir_entries = match fs::read_dir(crate_link_path) {
Ok(iter) => iter,
Expand Down
Loading