Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Aug 20, 2024
1 parent 205826e commit c402c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-core/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ where
if items.len() <= 4 {
for i in 0..items.len() - 1 {
let name = get_name(&items[i]);
for j in i + 1..items.len() {
if name == get_name(&items[j]) {
for other in items.iter().skip(i + 1) {
if name == get_name(other) {
polars_bail!(duplicate = name);
}
}
Expand Down

0 comments on commit c402c20

Please sign in to comment.