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.
This commit is contained in:
Thomas Eizinger 2021-09-09 19:07:00 +10:00
parent 52d0554423
commit 49c7e21486
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
1 changed files with 2 additions and 7 deletions

View File

@ -879,16 +879,11 @@ fn to_hex<'a>(src: &[u8], target: &'a mut [u8]) -> Result<&'a str, ()> {
#[cfg(test)]
mod tests {
use super::*;
use rand::{RngCore, thread_rng};
use std::str::FromStr;
use std::marker::PhantomData;
use key::{SecretKey, PublicKey};
use super::{from_hex, to_hex};
use super::constants;
use super::{Secp256k1, Signature, Message, Error};
use ffi::{self, types::AlignedType};
use context::*;
use ffi::types::AlignedType;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::wasm_bindgen_test as test;