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 704ce59 commit c18464a
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().cloned().collect()
self.children.to_vec()
}

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().cloned().collect()
self.children().to_vec()
}

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

0 comments on commit c18464a

Please sign in to comment.