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

add clippy rules to test-templates crate #935

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test-templates/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ark-algebra-test-templates"
description = "A library for tests for finite fields, elliptic curves, and pairings"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
keywords = ["cryptography", "finite-fields", "elliptic-curves"]
documentation = "https://docs.rs/ark-algebra-test-templates/"
version.workspace = true
authors.workspace = true
Expand All @@ -15,6 +15,9 @@ rust-version.workspace = true
metadata.docs.rs.workspace = true
package.metadata.release.workspace = true

[lints]
workspace = true

[dependencies]
ark-std.workspace = true
ark-serialize.workspace = true
Expand All @@ -31,4 +34,4 @@ sha2.workspace = true

[features]
default = []
std = [ "ark-std/std", "ark-ff/std", "ark-serialize/std", "ark-ec/std" ]
std = ["ark-std/std", "ark-ff/std", "ark-serialize/std", "ark-ec/std"]
2 changes: 1 addition & 1 deletion test-templates/src/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl ark_serialize::Flags for DummyFlags {
}

fn from_u8(_value: u8) -> Option<Self> {
Some(DummyFlags)
Some(Self)
}
}

Expand Down
6 changes: 3 additions & 3 deletions test-templates/src/h2c/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pub mod json;
extern crate hex;
extern crate serde_json;
extern crate sha2;
use hex;
pub use hex::decode;
use serde_json;
pub use serde_json::from_reader;
use sha2;
pub use sha2::Sha256;

#[macro_export]
Expand Down
Loading