-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(rust): Fix inconsistency between code and comment #21294
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21294 +/- ##
==========================================
- Coverage 79.82% 79.82% -0.01%
==========================================
Files 1596 1596
Lines 228565 228561 -4
Branches 2608 2608
==========================================
- Hits 182462 182455 -7
- Misses 45507 45510 +3
Partials 596 596 ☔ View full report in Codecov by Sentry. |
@@ -22,6 +22,7 @@ impl<'a> GrowableFixedSizeBinary<'a> { | |||
mut use_validity: bool, | |||
capacity: usize, | |||
) -> Self { | |||
assert!(!arrays.is_empty()); |
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.
It already panics because of access on L32.
@@ -24,6 +24,7 @@ impl<'a, T: NativeType> GrowablePrimitive<'a, T> { | |||
mut use_validity: bool, | |||
capacity: usize, | |||
) -> Self { | |||
assert!(!arrays.is_empty()); |
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.
It already panics because of access on L34
This pr fixes problems in #21228