-
Notifications
You must be signed in to change notification settings - Fork 251
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
Edition 2018 clean up #113
Conversation
There is a typo in one of the commit messages, and it looks like this will fail CI due needing a |
56965a7
to
76795a9
Compare
@@ -18,7 +18,7 @@ macro_rules! curve_impl { | |||
} | |||
|
|||
impl ::std::fmt::Display for $affine { | |||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { | |||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
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.
Note: In pairing I did a find and replace on ::std::fmt::Formatter
/::std::fmt::Formatter<'_>
. cargo fix --edition-idioms
would fail here and try to double add the <'_>
.
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.
ACK mod comments, but zcash_proofs
has not been editionized.
|
||
#[cfg(feature = "multicore")] | ||
extern crate crossbeam; | ||
#[cfg(feature = "multicore")] | ||
extern crate futures_cpupool; |
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.
Why does this multicore
-conditional extern crate
disappear, but not the other two?
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.
extern crate hex_literal
stays as expected because of the #[macro_use]
.
@@ -23,11 +21,9 @@ extern crate hex_literal; | |||
#[cfg(test)] | |||
extern crate rand; | |||
|
|||
#[cfg(test)] | |||
extern crate rand_xorshift; |
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.
Why does this test
-conditional extern crate
disappear, but not the extern crate rand
?
There were no changes when running |
This PR runs
cargo fix --edition
andcargo fix --edition-idioms
on all of the modules which needed it, and includes some warning cleanup along the way. The folderszcash_primitives/benches/...
andpairing/benches/...
were omitted when running the fix because they depend on unstable features, so it is possible that they no longer work. @ebfull suggested updating the benchmarks to use https://docs.rs/criterion/0.2.11/criterion/ which could be done as part of this PR, but might make more sense to be done as follow up.Closes #97.