-
Notifications
You must be signed in to change notification settings - Fork 867
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
Rename OffsetSize::fn is_large
to const OffsetSize::IS_LARGE
#1664
Conversation
Signed-off-by: remzi <[email protected]>
fn is_large
by const IS_LARGE
fn is_large
with const IS_LARGE
/// Get the data type of the array. | ||
// Declare this function as `pub const fn` after | ||
// https://github.com/rust-lang/rust/issues/93706 is merged. |
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.
Make consistent comment style?
/// Get the data type of the array. | |
// Declare this function as `pub const fn` after | |
// https://github.com/rust-lang/rust/issues/93706 is merged. | |
// Get the data type of the array. | |
// Declare this function as `pub const fn` after | |
// https://github.com/rust-lang/rust/issues/93706 is merged. |
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.
I just want to make the first line (Get the data type of the array.
) be the doc of this function. And it is not necessary to expose the 2nd and 3rd line to users, so I use //
.
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.
Oh, I see.
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.
Make sense.
Could we merge this PR, as the potential merge conflict is high? |
Merged. Thanks @HaoYang670 |
Thank you for your review. @viirya !! |
fn is_large
with const IS_LARGE
OffsetSize::fn is_large
to const OffsetSize::IS_LARGE
Signed-off-by: remzi [email protected]
Which issue does this PR close?
Closes #1658 .
What changes are included in this PR?
Replace
fn is_large
withconst IS_LARGE
.Unfortunately, we still can't declare
BinaryArray::get_data_type
asconst fn
. Please look at the docs.Are there any user-facing changes?
Yes.
fn is_large
is deleted