diff --git a/test-templates/Cargo.toml b/test-templates/Cargo.toml index d8cfc9482..027f66b27 100644 --- a/test-templates/Cargo.toml +++ b/test-templates/Cargo.toml @@ -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 @@ -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 @@ -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"] diff --git a/test-templates/src/fields.rs b/test-templates/src/fields.rs index de95dc276..80729944a 100644 --- a/test-templates/src/fields.rs +++ b/test-templates/src/fields.rs @@ -14,7 +14,7 @@ impl ark_serialize::Flags for DummyFlags { } fn from_u8(_value: u8) -> Option { - Some(DummyFlags) + Some(Self) } } diff --git a/test-templates/src/h2c/mod.rs b/test-templates/src/h2c/mod.rs index d7feb4ad3..c381bbc3a 100644 --- a/test-templates/src/h2c/mod.rs +++ b/test-templates/src/h2c/mod.rs @@ -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]