From 5450de0f5ec6247f80fb99a478e88bd956d73db0 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 6 Dec 2019 00:26:22 +0100 Subject: [PATCH] cargo: Do not run fmt on anyhow's build code The anyhow crate generates some incorrectly indented code from its build.rs code. We don't want to run cargo fmt on this code. Signed-off-by: Samuel Ortiz --- scripts/run_cargo_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_cargo_tests.sh b/scripts/run_cargo_tests.sh index 8a7a41aaf..140b5da08 100755 --- a/scripts/run_cargo_tests.sh +++ b/scripts/run_cargo_tests.sh @@ -21,5 +21,5 @@ cargo rustc --bin cloud-hypervisor --no-default-features --features "pci" -- -D cargo rustc --bin vhost_user_net --no-default-features --features "pci" -- -D warnings cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio" -- -D warnings cargo rustc --bin vhost_user_net --no-default-features --features "mmio" -- -D warnings -find . -name "*.rs" | xargs rustfmt --check +find . \( -name "*.rs" ! -wholename "*/out/*.rs" \) | xargs rustfmt --check cargo build --release