Skip to content

Commit

Permalink
add clippy rules to test-templates crate (#935)
Browse files Browse the repository at this point in the history
* add clippy rules to test-templates crate

* fmt

---------

Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
tcoratger and Pratyush authored Mar 5, 2025
1 parent 3dc7620 commit 251f1e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
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

0 comments on commit 251f1e1

Please sign in to comment.