Skip to content

Commit 1006cf2

Browse files
committed
linted
1 parent decdd00 commit 1006cf2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,9 @@ pub fn check_conflict(path: &Path) -> bool {
164164
}
165165
};
166166

167-
let has_conflict = trash_list
167+
trash_list
168168
.iter()
169-
.any(|item| item.name.to_string_lossy() == name);
170-
171-
// only did this to make it meaning full for other fn
172-
has_conflict
169+
.any(|item| item.name.to_string_lossy() == name)
173170
}
174171

175172
fn main() {

0 commit comments

Comments
 (0)