Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flx clippy warnings #8455

Merged
merged 4 commits into from
Dec 8, 2023
Merged

flx clippy warnings #8455

merged 4 commits into from
Dec 8, 2023

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Dec 7, 2023

Which issue does this PR close?

Closes #.

Rationale for this change

Fix rust lints

What changes are included in this PR?

Two major warnings:

  • unnecessary try_from()
  • .get(0) to .first()

Are these changes tested?

Yes

Are there any user-facing changes?

No

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Physical Expressions optimizer Optimizer rules core Core DataFusion crate labels Dec 7, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @waynexia -- this looks good to me

@waynexia waynexia merged commit c0c9e88 into apache:main Dec 8, 2023
22 checks passed
@waynexia waynexia deleted the fix-clippy-2 branch December 8, 2023 02:23
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Dec 15, 2023
* change get zero to first()

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* wake clone to wake_by_ref

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* more first()

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* try_from() to from()

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants