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

some warning for the newest rust version #12

Open
jianshu93 opened this issue Oct 8, 2023 · 0 comments
Open

some warning for the newest rust version #12

jianshu93 opened this issue Oct 8, 2023 · 0 comments

Comments

@jianshu93
Copy link

Hello Team,

Not a big deal, but some compiling warnings after updated to rust 1.75 nightly:

warning: unnecessary parentheses around index expression
--> src/final3/functions.rs:114:42
|
114 | ...= u64::from(c[((wyrng(&mut seed) as usize) % c.len())]) << j;
| ^ ^
|
= note: #[warn(unused_parens)] on by default
help: remove these parentheses
|
114 - secret[i] |= u64::from(c[((wyrng(&mut seed) as usize) % c.len())]) << j;
114 + secret[i] |= u64::from(c[(wyrng(&mut seed) as usize) % c.len()]) << j;
|

Thanks,

Jianshu

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

No branches or pull requests

1 participant