Skip to content

Commit

Permalink
Fix unit test import statements
Browse files Browse the repository at this point in the history
In `lib.rs` unit tests we are getting build warnings because of how we
are importing things, just import with `super::*` unconditionally and be
done with it.
  • Loading branch information
tcharding committed Oct 31, 2023
1 parent fe2905d commit dd6bf7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,7 @@ mod tests {
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::wasm_bindgen_test as test;

#[allow(unused_imports)] // When building with no default features.
use super::*;
use crate::{constants, ecdsa, from_hex, Error, Message};
#[cfg(feature = "alloc")]
use crate::{ffi, PublicKey, Secp256k1, SecretKey};

macro_rules! hex {
($hex:expr) => {{
Expand Down

0 comments on commit dd6bf7c

Please sign in to comment.