-
Notifications
You must be signed in to change notification settings - Fork 35
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 clippy
warnings and bump srp
and aucpace
MSRV to 1.61
#144
Conversation
8f400ba
to
cf97857
Compare
cc @tritoke |
Thanks for fixing these, I got quite busy writing my dissertation towards the end of finishing this so it's nice that it's been tidied up! All of the |
It could be worth to also bump Clippy version in our CI job and if there are warnings in other crates, it would be nice to fix them as well. |
Will draft this temporarily and get all of that done! |
@brxken128 you can bump |
I'll see what the new MSRV should be, from a glance 1.65.0 looks suitable but I'm not 100%. Edit: 1.64.0 and 1.63.0 work, I forgot what version things were stabilized in so it's just trial-and-error now haha Further edit: All should be good to go! 1.62.1 seemed to be the lowest, so I changed CI/the I was using Another edit: Just realised my CI mistake, reverting now |
ff1da95
to
14011d9
Compare
After further testing, |
clippy
warningsclippy
warnings and bump srp
and aucpace
MSRV to 1.61.0
@brxken128 fwiw there is a tool called cargo-msrv that uses a kind of git bisect style approach to find the MSRV and it means you don't need to install all the toolchains, have found it very useful in the past so I thought I'd mention it :) |
Oh wow that does sound incredibly helpful, I'll add it to my toolkit. I have a taskfile which installs all of the helpful tooling and this'll definitely be included - thank you so much! |
That's fine... can you bump them to the next minor version in Cargo.toml and add |
Done, and changed all |
clippy
warnings and bump srp
and aucpace
MSRV to 1.61.0
clippy
warnings and bump srp
and aucpace
MSRV to 1.61
While playing around in the workspace (
SPAKE2
specifically), I noticed that there were a tonne of clippy warnings so I decided to fix them all.My only concern is the silencing ofThese were changed towrite
via#[allow(clippy::unused_io_amount)]
- I wonder if changing all of those writes towrite_all
would produce more-than-negligible performance losses.write_all
for correctness.This changes the MSRV of
srp
andaucpace
from1.60.0
to1.61.0
otherwise they won't build with someconst fn
s (#93706 was added in1.61.0
)