Skip to content

Commit 49c7e21

Browse files
Prefer use super::* import over manually picking items
Tests are usually placed next to the code they are testing. As such, importing `super::*` is a good starting point.
1 parent 52d0554 commit 49c7e21

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -879,16 +879,11 @@ fn to_hex<'a>(src: &[u8], target: &'a mut [u8]) -> Result<&'a str, ()> {
879879

880880
#[cfg(test)]
881881
mod tests {
882+
use super::*;
882883
use rand::{RngCore, thread_rng};
883884
use std::str::FromStr;
884885
use std::marker::PhantomData;
885-
886-
use key::{SecretKey, PublicKey};
887-
use super::{from_hex, to_hex};
888-
use super::constants;
889-
use super::{Secp256k1, Signature, Message, Error};
890-
use ffi::{self, types::AlignedType};
891-
use context::*;
886+
use ffi::types::AlignedType;
892887

893888
#[cfg(target_arch = "wasm32")]
894889
use wasm_bindgen_test::wasm_bindgen_test as test;

0 commit comments

Comments
 (0)