Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Fix unused imports
  • Loading branch information
pepyakin committed Jun 12, 2021
commit 3943a699534af7bae764a6b2ae1ca6cb2302b2bc
8 changes: 6 additions & 2 deletions client/executor/src/integration_tests/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! Tests that are only relevant for Linux
//! Tests that are only relevant for Linux.

// Constrain this only to wasmtime for the time being. Without this rustc will complain on unused
// imports and items. The alternative is to plop `cfg(feature = wasmtime)` everywhere which seems
// borthersome.
#![cfg(feature = "wasmtime")]

use crate::WasmExecutionMethod;
use super::mk_test_runtime;
Expand All @@ -26,7 +31,6 @@ mod smaps;

use self::smaps::Smaps;

#[cfg(feature = "wasmtime")]
#[test]
fn memory_consumption_compiled() {
use sc_executor_common::wasm_runtime::WasmModule as _;
Expand Down