Skip to content

Commit e3d21a3

Browse files
committed
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.
1 parent f531be3 commit e3d21a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/key.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -964,17 +964,17 @@ impl<'de> ::serde::Deserialize<'de> for XOnlyPublicKey {
964964

965965
#[cfg(test)]
966966
mod test {
967-
use Secp256k1;
968-
use {from_hex, to_hex};
969-
use super::super::Error::{InvalidPublicKey, InvalidSecretKey};
970-
use super::{PublicKey, SecretKey};
971-
use super::super::constants;
967+
use super::*;
972968

973-
use rand::{Error, ErrorKind, RngCore, thread_rng};
974-
use rand_core::impls;
975969
use std::iter;
976970
use std::str::FromStr;
977971

972+
use rand::{Error, ErrorKind, RngCore, thread_rng};
973+
use rand_core::impls;
974+
975+
use {to_hex, constants};
976+
use Error::{InvalidPublicKey, InvalidSecretKey};
977+
978978
#[cfg(target_arch = "wasm32")]
979979
use wasm_bindgen_test::wasm_bindgen_test as test;
980980

0 commit comments

Comments
 (0)