From 59b55449967e925e4c0d0c0b7edf7a60824ba779 Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Thu, 25 Feb 2021 18:10:03 +0900 Subject: [PATCH] Fix 8041f03bc: enable compilers during tests, make sure make test-packages lint-packages passes --- Makefile | 4 ++-- lib/cli/src/commands/create_exe.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ef80e65714f..33e68a1b012 100644 --- a/Makefile +++ b/Makefile @@ -495,7 +495,7 @@ test-packages: cargo test -p wasmer-engine-native --release --no-default-features cargo test -p wasmer-engine-jit --release --no-default-features cargo test -p wasmer-compiler --release - cargo test -p wasmer-cli --release + cargo test --manifest-path lib/cli/Cargo.toml $(compiler_features) --release cargo test -p wasmer-cache --release cargo test -p wasmer-engine --release cargo test -p wasmer-derive --release @@ -717,7 +717,7 @@ lint-packages: RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-compiler RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-compiler-cranelift RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-compiler-singlepass - RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-cli + RUSTFLAGS=${RUSTFLAGS} cargo clippy --manifest-path lib/cli/Cargo.toml $(compiler_features) RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-cache RUSTFLAGS=${RUSTFLAGS} cargo clippy -p wasmer-engine diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 7a70bd7fc56..a7b316d4868 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -148,7 +148,7 @@ fn generate_header(header_file_src: &[u8]) -> anyhow::Result<()> { .open(&header_file_path)?; use std::io::Write; - header.write(header_file_src)?; + header.write_all(header_file_src)?; Ok(()) }