Skip to content

Commit

Permalink
Fix lint warnings in providers_expr.rs
Browse files Browse the repository at this point in the history
Summary: 1. use `match!` macro to make it more clean

Reviewed By: stepancheg

Differential Revision: D62674228

fbshipit-source-id: f990e4cb6c2bfb48277564c7e36e303b0afba737
  • Loading branch information
Nero5023 authored and facebook-github-bot committed Sep 14, 2024
1 parent 534e34b commit 81fe8aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/buck2_bxl/src/bxl/starlark_defs/providers_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_))
}
}

Expand Down

0 comments on commit 81fe8aa

Please sign in to comment.