Skip to content

Commit 676191c

Browse files
committed
clippy lint
1 parent 1575a1f commit 676191c

File tree

1 file changed

+3
-6
lines changed
  • datafusion/core/src/dataframe

1 file changed

+3
-6
lines changed

datafusion/core/src/dataframe/mod.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1989,12 +1989,9 @@ impl DataFrame {
19891989
names
19901990
.iter()
19911991
.map(|name| {
1992-
schema
1993-
.field_with_name(None, name)
1994-
.map(|f| f.clone())
1995-
.map_err(|_| {
1996-
DataFusionError::Plan(format!("Column '{}' not found", name))
1997-
})
1992+
schema.field_with_name(None, name).cloned().map_err(|_| {
1993+
DataFusionError::Plan(format!("Column '{}' not found", name))
1994+
})
19981995
})
19991996
.collect()
20001997
}

0 commit comments

Comments
 (0)