Skip to content

Commit 4d7c874

Browse files
Fix lint
1 parent ebdc109 commit 4d7c874

File tree

2 files changed

+11
-9
lines changed
  • extensions/sha2/circuit/src/sha2_chips
  • guest-libs/k256/tests/programs/examples

2 files changed

+11
-9
lines changed

extensions/sha2/circuit/src/sha2_chips/tests.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -570,15 +570,17 @@ fn negative_sha384_test_bad_final_hash() {
570570
// Ensure GPU tracegen is equivalent to CPU tracegen
571571
// ////////////////////////////////////////////////////////////////////////////////////
572572

573+
type Sha2GpuTestChip<C> = GpuTestChipHarness<
574+
F,
575+
Sha2VmExecutor<C>,
576+
Sha2MainAir<C>,
577+
Sha2MainChipGpu<C>,
578+
Sha2MainChip<F, C>,
579+
>;
580+
573581
#[cfg(feature = "cuda")]
574582
struct GpuHarness<C: Sha2Config> {
575-
pub main: GpuTestChipHarness<
576-
F,
577-
Sha2VmExecutor<C>,
578-
Sha2MainAir<C>,
579-
Sha2MainChipGpu<C>,
580-
Sha2MainChip<F, C>,
581-
>,
583+
pub main: Sha2GpuTestChip<C>,
582584
block_air: Sha2BlockHasherVmAir<C>,
583585
block_gpu: Sha2BlockHasherChipGpu<C>,
584586
block_cpu: Sha2BlockHasherChip<F, C>,
@@ -601,8 +603,7 @@ fn create_cuda_harness<C: Sha2Config>(tester: &GpuChipTestBuilder) -> GpuHarness
601603
tester.address_bits(),
602604
);
603605

604-
let block_hasher_air =
605-
Sha2BlockHasherVmAir::new(bitwise_bus.clone(), SUBAIR_BUS_IDX, SHA2_BUS_IDX);
606+
let block_hasher_air = Sha2BlockHasherVmAir::new(bitwise_bus, SUBAIR_BUS_IDX, SHA2_BUS_IDX);
606607
let block_hasher_chip = Sha2BlockHasherChip::new(
607608
dummy_bitwise_chip.clone(),
608609
tester.address_bits(),

guest-libs/k256/tests/programs/examples/ecdsa.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
extern crate alloc;
55

66
use core::hint::black_box;
7+
78
use ecdsa::RecoveryId;
89
use hex_literal::hex;
910
use openvm_k256::ecdsa::{Signature, VerifyingKey};

0 commit comments

Comments
 (0)