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

Fix warnings and add -D warnings check in CI #226

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Conversation

tarcieri
Copy link
Contributor

@tarcieri tarcieri requested a review from rozbb November 20, 2022 21:21
@tarcieri tarcieri force-pushed the fix-warnings branch 2 times, most recently from 6665342 to f24a14d Compare November 20, 2022 21:31
- Eliminates dead code left over from #205
- Adds `-D warnings` in CI so that warnings are treated as errors.
  This ensures code must be warning-free to pass CI.
@@ -54,7 +54,7 @@ std = ["curve25519-dalek/std", "ed25519/std", "serde_crate/std", "sha2/std", "ra
alloc = ["curve25519-dalek/alloc", "rand/alloc", "zeroize/alloc"]
nightly = ["curve25519-dalek/nightly"]
serde = ["serde_crate", "serde_bytes", "ed25519/serde"]
batch = ["merlin", "rand"]
batch = ["merlin", "rand/std"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs std for rand::thread_rng

@tarcieri tarcieri mentioned this pull request Nov 20, 2022
@@ -57,6 +57,8 @@ mod ed25519_benches {
fn verify_batch_signatures(c: &mut Criterion) {
static BATCH_SIZES: [usize; 8] = [4, 8, 16, 32, 64, 96, 128, 256];

// TODO: use BenchmarkGroups instead.
#[allow(deprecated)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I address this and the std stuff in #220. Will rebase soon

@rozbb
Copy link
Contributor

rozbb commented Nov 21, 2022

Thanks! The warnings have been a bit annoying

@rozbb rozbb merged commit ae4bd2c into release/2.0 Nov 21, 2022
@tarcieri tarcieri deleted the fix-warnings branch January 5, 2023 20:11
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 this pull request may close these issues.

2 participants