Skip to content

Commit b7c80a2

Browse files
committed
fix: fix clippy warnings
1 parent fc8b2b8 commit b7c80a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datafusion/sql/src/expr/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
9494
}) = *right
9595
{
9696
let left_span = match &*left {
97-
SQLExpr::Identifier(Ident { span, .. }) => {
98-
span.clone()
99-
}
97+
SQLExpr::Identifier(Ident { span, .. }) => *span,
10098
// In this case, we expect left to be
10199
// Indentifier. Just to make the code
102100
// more robust, we'll make left_span
103101
// equals to null_span otherwise.
104-
_ => null_span.clone(),
102+
_ => null_span,
105103
};
106104
let combined_span = Span {
107105
start: Into::into(left_span.start),

0 commit comments

Comments
 (0)