Skip to content

Commit

Permalink
Fix clippy linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-vi committed Sep 24, 2024
1 parent 8128ce8 commit 314929a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/polars-plan/src/plans/functions/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ pub(super) fn rename_impl(
let schema = df.schema();
existing
.iter()
.map(|old| match schema.get_full(old) {
Some((idx, _, _)) => Some(idx),
None => None,
})
.map(|old| schema.get_full(old).map(|(idx, _, _)| idx))
.collect::<Vec<_>>()
} else {
existing
Expand Down

0 comments on commit 314929a

Please sign in to comment.