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

chore: replace result assertions #1840

Merged

Conversation

v0y4g3r
Copy link
Contributor

@v0y4g3r v0y4g3r commented Jun 27, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR does:

  • s/assert\!\((.*)\.is_ok\(\)\);/let _ = \1.unwrap\(\);/g
  • s/assert\!\((.*)\.is_some\(\)\);/let _ = \1.unwrap\(\);/g
  • and other necessary changes to get clippy work

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)

@v0y4g3r v0y4g3r marked this pull request as ready for review June 27, 2023 09:29
@v0y4g3r v0y4g3r force-pushed the chore/replace-result-assertions branch from 23ffee7 to 4cad8de Compare June 27, 2023 09:34
@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #1840 (4cad8de) into develop (fcff66e) will decrease coverage by 0.48%.
The diff coverage is 97.82%.

@@             Coverage Diff             @@
##           develop    #1840      +/-   ##
===========================================
- Coverage    86.65%   86.17%   -0.48%     
===========================================
  Files          587      588       +1     
  Lines        95635    95728      +93     
===========================================
- Hits         82868    82497     -371     
- Misses       12767    13231     +464     

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 merged commit f287d31 into GreptimeTeam:develop Jun 27, 2023
11 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g

* s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
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.

3 participants