Clean up test imports with key module

The import statements can be simplified by using an import
wildcard (`super::*`). While we are at it put them in std, external
crate, this crate order.
This commit is contained in:
Tobin Harding 2022-01-04 08:18:44 +11:00
parent f531be3e3c
commit e3d21a3d87
1 changed files with 7 additions and 7 deletions

View File

@ -964,16 +964,16 @@ impl<'de> ::serde::Deserialize<'de> for XOnlyPublicKey {
#[cfg(test)]
mod test {
use Secp256k1;
use {from_hex, to_hex};
use super::super::Error::{InvalidPublicKey, InvalidSecretKey};
use super::{PublicKey, SecretKey};
use super::super::constants;
use super::*;
use std::iter;
use std::str::FromStr;
use rand::{Error, ErrorKind, RngCore, thread_rng};
use rand_core::impls;
use std::iter;
use std::str::FromStr;
use {to_hex, constants};
use Error::{InvalidPublicKey, InvalidSecretKey};
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::wasm_bindgen_test as test;