-
Notifications
You must be signed in to change notification settings - Fork 156
use ConstZero instead of Default #838
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
Conversation
96ad0c3
to
f6246e3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
d462120
to
62bb6a5
Compare
62bb6a5
to
c6316a3
Compare
d22e32e
to
379a857
Compare
/ci diff pr |
379a857
to
e4fdedb
Compare
@Emilgardis @adamgreig what do you think about this change? |
Not sure i understand why num-traits is needed for this, could you elaborate? |
We can introduce our own |
This comment was marked as outdated.
This comment was marked as outdated.
2dba2b6
to
806734c
Compare
cc @Emilgardis rebased |
/ci diff pr |
cc @Emilgardis let's merge |
/ci diff semver |
Semver break should be fine, implementations of RawReg shouldnt be done by other crates. That one() is missing should be fine too |
Advantages:
const
szero
is more semantically correct thendefault
Disadvantages:
rustdoc
still not good withconst defaults
. Printsinstead of
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0
for default value.cc @Emilgardis