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:
parent
f531be3e3c
commit
e3d21a3d87
14
src/key.rs
14
src/key.rs
|
@ -964,16 +964,16 @@ impl<'de> ::serde::Deserialize<'de> for XOnlyPublicKey {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use Secp256k1;
|
use super::*;
|
||||||
use {from_hex, to_hex};
|
|
||||||
use super::super::Error::{InvalidPublicKey, InvalidSecretKey};
|
use std::iter;
|
||||||
use super::{PublicKey, SecretKey};
|
use std::str::FromStr;
|
||||||
use super::super::constants;
|
|
||||||
|
|
||||||
use rand::{Error, ErrorKind, RngCore, thread_rng};
|
use rand::{Error, ErrorKind, RngCore, thread_rng};
|
||||||
use rand_core::impls;
|
use rand_core::impls;
|
||||||
use std::iter;
|
|
||||||
use std::str::FromStr;
|
use {to_hex, constants};
|
||||||
|
use Error::{InvalidPublicKey, InvalidSecretKey};
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
use wasm_bindgen_test::wasm_bindgen_test as test;
|
use wasm_bindgen_test::wasm_bindgen_test as test;
|
||||||
|
|
Loading…
Reference in New Issue