From e3d21a3d87614980f840bd50ed3cb387d06381c4 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 4 Jan 2022 08:18:44 +1100 Subject: [PATCH] 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. --- src/key.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/key.rs b/src/key.rs index f2152b6..c6974e3 100644 --- a/src/key.rs +++ b/src/key.rs @@ -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;