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

build: specify clippy denies in cargo config #1351

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Specify clippy denies (-D clippy::print_stdout -D clippy::print_stderr) in cargo config. Reduce duplicate settings.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

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

codecov bot commented Apr 10, 2023

Codecov Report

Merging #1351 (f42f7c7) into develop (09f003d) will decrease coverage by 0.41%.
The diff coverage is n/a.

❗ Current head f42f7c7 differs from pull request most recent head 4b20b22. Consider uploading reports for the commit 4b20b22 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1351      +/-   ##
===========================================
- Coverage    85.49%   85.08%   -0.41%     
===========================================
  Files          514      514              
  Lines        77471    77471              
===========================================
- Hits         66230    65914     -316     
- Misses       11241    11557     +316     

@waynexia waynexia enabled auto-merge (squash) April 11, 2023 02:33
@waynexia waynexia requested review from zyy17 and v0y4g3r April 11, 2023 03:22
@discord9
Copy link
Contributor

Maybe add a line about "-Wclippy::implicit_clone"? clippy::implicit_clone deny usage of to_vec or to_owned when clone is available and clearer?

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia
Copy link
Member Author

Added in 4b20b22, thanks for suggestion

@waynexia waynexia requested a review from discord9 April 11, 2023 09:31
Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM

@waynexia waynexia merged commit 6b6617f into GreptimeTeam:develop Apr 11, 2023
@waynexia waynexia mentioned this pull request Apr 17, 2023
2 tasks
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* build: specify clippy denies in cargo config

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

* deny implicit clone

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants