From 4c17b61a96d3f6a5ae5820399d6864787252984e Mon Sep 17 00:00:00 2001 From: CreepySkeleton Date: Mon, 12 Oct 2020 17:58:48 +0300 Subject: [PATCH] cargo fmt & clippy --- structopt-derive/src/lib.rs | 2 ++ tests/regressions.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs index 6cc415b..b99bd35 100644 --- a/structopt-derive/src/lib.rs +++ b/structopt-derive/src/lib.rs @@ -11,6 +11,8 @@ //! for the usage of `#[derive(StructOpt)]`. #![allow(clippy::large_enum_variant)] +// FIXME: remove when and if our MSRV hits 1.42 +#![allow(clippy::match_like_matches_macro)] #![forbid(unsafe_code)] extern crate proc_macro; diff --git a/tests/regressions.rs b/tests/regressions.rs index 9b1a93a..876e7ed 100644 --- a/tests/regressions.rs +++ b/tests/regressions.rs @@ -10,7 +10,7 @@ fn invisible_group_issue_439() { #[derive(Debug, StructOpt)] struct Opts { #[structopt(long = "x")] - x: $bool + x: $bool, } }; }