Skip to content

Commit

Permalink
Remove cfg test from non-test import
Browse files Browse the repository at this point in the history
  • Loading branch information
rozbb committed Mar 1, 2024
1 parent cfe5e13 commit 9ed767f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion curve25519-dalek/src/edwards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ use {
subtle::CtOption,
};

#[cfg(any(test, feature = "group"))]
#[cfg(feature = "group")]
use rand_core::RngCore;

use subtle::Choice;
Expand Down Expand Up @@ -1593,6 +1593,10 @@ impl CofactorGroup for EdwardsPoint {
mod test {
use super::*;

// If `group` is set, then this is already imported in super
#[cfg(not(feature = "group"))]
use rand_core::RngCore;

#[cfg(feature = "alloc")]
use alloc::vec::Vec;

Expand Down

0 comments on commit 9ed767f

Please sign in to comment.