From 030f2deaf13af6e0b83735964e73002aac512e99 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Thu, 26 Aug 2021 16:34:46 -0700 Subject: [PATCH 1/2] Refactor test imports --- validation/src/util.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/validation/src/util.rs b/validation/src/util.rs index 2c44a4e962..1ae430648e 100644 --- a/validation/src/util.rs +++ b/validation/src/util.rs @@ -2,9 +2,6 @@ use crate::Error; use alloc::string::String; use parity_wasm::elements::{Local, ValueType}; -#[cfg(test)] -use assert_matches::assert_matches; - /// Locals are the concatenation of a slice of function parameters /// with function declared local variables. /// @@ -80,6 +77,7 @@ impl<'a> Locals<'a> { #[cfg(test)] mod tests { + use assert_matches::assert_matches; use super::*; #[test] From 0207c48166e7b1440d1d29739b30c288dab91033 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Thu, 26 Aug 2021 17:49:26 -0700 Subject: [PATCH 2/2] Fix formatting --- validation/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/src/util.rs b/validation/src/util.rs index 1ae430648e..16c90871d1 100644 --- a/validation/src/util.rs +++ b/validation/src/util.rs @@ -77,8 +77,8 @@ impl<'a> Locals<'a> { #[cfg(test)] mod tests { - use assert_matches::assert_matches; use super::*; + use assert_matches::assert_matches; #[test] fn locals_it_works() {