Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 29, 2023
1 parent 0078910 commit 704ce59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/sort_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl ExprOrdering {

impl TreeNode for ExprOrdering {
fn children_nodes(&self) -> Vec<Self> {
self.children.iter().map(|c| c.clone()).collect()
self.children.iter().cloned().collect()
}

fn map_children<F>(mut self, transform: F) -> Result<Self>
Expand Down
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl<T> ExprTreeNode<T> {

impl<T: Clone> TreeNode for ExprTreeNode<T> {
fn children_nodes(&self) -> Vec<Self> {
self.children().iter().map(|c| c.clone()).collect()
self.children().iter().cloned().collect()
}

fn map_children<F>(mut self, transform: F) -> Result<Self>
Expand Down

0 comments on commit 704ce59

Please sign in to comment.