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

Why redefine this mask function when ruint crate already have same mask function? #695

Closed
rongyi opened this issue Jul 26, 2024 · 1 comment · Fixed by #698
Closed

Why redefine this mask function when ruint crate already have same mask function? #695

rongyi opened this issue Jul 26, 2024 · 1 comment · Fixed by #698

Comments

@rongyi
Copy link
Contributor

rongyi commented Jul 26, 2024

pub(crate) const MASK: u64 = mask(BITS);

https://github.com/recmo/uint/blob/c4616bdb1bcdaa991ef23f9808c56c86127625ea/src/lib.rs#L321

@mattsse
Copy link
Member

mattsse commented Jul 26, 2024

this is indeed duplicated and could be reused since it appears to be public ruint api

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 a pull request may close this issue.

2 participants