Skip to content

Commit

Permalink
Merge pull request #107 from orph3usLyre/ls/clippy-fixes
Browse files Browse the repository at this point in the history
Misc clippy complaints
  • Loading branch information
joshuacolvin0 authored Dec 11, 2024
2 parents 31bc4ea + 4a5f629 commit d2ba5ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,15 @@ mod test {
let dir = tempdir()?;
let dir_path = dir.path();

let files = vec!["file.rs", "ignore.me", "Cargo.toml", "Cargo.lock"];
for file in files.iter() {
let files = ["file.rs", "ignore.me", "Cargo.toml", "Cargo.lock"];
for file in files {
let file_path = dir_path.join(file);
let mut file = File::create(&file_path)?;
writeln!(file, "Test content")?;
}

let dirs = vec!["nested", ".git", "target"];
for d in dirs.iter() {
let dirs = ["nested", ".git", "target"];
for d in dirs {
let subdir_path = dir_path.join(d);
if !subdir_path.exists() {
fs::create_dir(&subdir_path)?;
Expand Down

0 comments on commit d2ba5ce

Please sign in to comment.