From 1ddb4da92002c42a5800e66394c131a03481b3e8 Mon Sep 17 00:00:00 2001 From: tabokie Date: Mon, 13 Jun 2022 17:33:22 +0800 Subject: [PATCH] clippy Signed-off-by: tabokie --- components/tikv_alloc/src/lib.rs | 2 +- scripts/test-all | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tikv_alloc/src/lib.rs b/components/tikv_alloc/src/lib.rs index 8223c032e55..f97ca325e56 100644 --- a/components/tikv_alloc/src/lib.rs +++ b/components/tikv_alloc/src/lib.rs @@ -157,7 +157,7 @@ mod runner { let v = &name[idx + 7..]; if !v.is_empty() && !v.chars().any(|c| c.is_ascii_lowercase()) - && !std::env::var(v).is_ok() + && std::env::var(v).is_err() { desc.ignore = true; // TODO: uncomment this on a toolchain > 2022-02-25 diff --git a/scripts/test-all b/scripts/test-all index 5236a960b3c..3ee6dff285e 100755 --- a/scripts/test-all +++ b/scripts/test-all @@ -16,7 +16,7 @@ fi # Re-run tests that requires specific environment variables. if [[ "$(uname)" == "Linux" ]]; then export MALLOC_CONF=prof:true - ./scripts/test "$@" -- where_MALLOC_CONF --nocapture + ./scripts/test where_MALLOC_CONF "$@" -- --nocapture fi if [[ "$(uname)" = "Linux" ]]; then