From 81fe8aa4494521d27f7f6790c7e89d7b07c8be61 Mon Sep 17 00:00:00 2001 From: Chenhao Zuo Date: Fri, 13 Sep 2024 21:57:37 -0700 Subject: [PATCH] Fix lint warnings in providers_expr.rs Summary: 1. use `match!` macro to make it more clean Reviewed By: stepancheg Differential Revision: D62674228 fbshipit-source-id: f990e4cb6c2bfb48277564c7e36e303b0afba737 --- app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs b/app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs index 704d40c70a3a..01369763315f 100644 --- a/app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs +++ b/app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs @@ -123,10 +123,7 @@ impl<'v> AnyProvidersExprArg<'v> { impl<'v> AnyProvidersLabelArg<'v> { fn is_unconfigured(&self) -> bool { - match self { - AnyProvidersLabelArg::Unconfigured(_) => true, - _ => false, - } + matches!(self, AnyProvidersLabelArg::Unconfigured(_)) } }