-
Notifications
You must be signed in to change notification settings - Fork 259
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
fix: replace unwrap with Valid #1757
Conversation
WalkthroughWalkthroughThe update in the Changes
Assessment against linked issues
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay. |
src/generator/from_proto.rs
Outdated
@@ -23,6 +23,36 @@ struct Context { | |||
query: String, | |||
} | |||
|
|||
/// A custom enum representing either a valid value or an error. | |||
#[derive(Debug)] | |||
enum Valid<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually valid is already defined in valid.rs
we need to use that instead of defining a new one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I have used the Valid in valid.rs
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1757 +/- ##
==========================================
- Coverage 86.93% 86.82% -0.12%
==========================================
Files 155 155
Lines 15540 15583 +43
==========================================
+ Hits 13510 13530 +20
- Misses 2030 2053 +23 ☔ View full report in Codecov by Sentry. |
Action required: PR inactive for 2 days. |
Moving to draft until the comments are fixed. Feel free to mark it as read for review whenever you are done fixing the comments. |
@emekaokoli19 Appreciate your contributions but unfortunately, this PR isn't going in the right direction. Feel free to take help from the contributor's channel on discord and reopen it whenever you are ready. |
/claim #1739
#1739
Fixes #1739 fix: drop unwrap from from_proto
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>
Summary by CodeRabbit