Skip to content

Commit 7c31e2f

Browse files
committed
chore: update CI workflow and refactor imports
- Added a step to install the `protobuf-compiler` in the GitHub Actions workflow. - Refactored import order in `identity.rs` for consistency. - Adjusted import order in `group.rs` for improved readability.
1 parent 674d723 commit 7c31e2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
with:
3434
toolchain: stable
3535
override: true
36+
- name: install requirements
37+
uses: awalsh128/cache-apt-pkgs-action@v1
38+
with:
39+
packages: protobuf-compiler
40+
version: 1.0
3641
- name: Run tests
3742
run: cargo test
3843

src/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
baby_jubjub::{BabyJubjubConfig, EdwardsAffine},
55
error::SemaphoreError,
66
};
7-
use ark_ec::{CurveConfig, CurveGroup, twisted_edwards::TECurveConfig};
7+
use ark_ec::{twisted_edwards::TECurveConfig, CurveConfig, CurveGroup};
88
use ark_ed_on_bn254::{Fq, Fr};
99
use ark_ff::{BigInteger, PrimeField};
1010
use blake::Blake;

tests/group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ mod group {
7171
use ark_ed_on_bn254::Fq;
7272
use ark_ff::{BigInteger, PrimeField};
7373
use num_bigint::BigInt;
74-
use semaphore_rs::group::{EMPTY_ELEMENT, Element, Group};
74+
use semaphore_rs::group::{Element, Group, EMPTY_ELEMENT};
7575
use std::str::FromStr;
7676

7777
fn str_to_element(s: &str) -> Element {

0 commit comments

Comments
 (0)