From 07996d9dd6f8e9aabf29ffbe543c58ffedeb06a7 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 9 Oct 2020 11:06:21 +0200 Subject: [PATCH] Ignore match_like_matches_macro clippy lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lint tells us to use the std::matches! macro instead of a match or if let expression that yields a bool. But the matches! macro was added in Rust 1.42, and our MSRV is 1.40. I don’t want to bump the MSRV only for this change, so we ignore the lint. --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 01c6c76..00c4d92 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,6 +32,9 @@ //! We don’t support the old index format. As the format of the HTML files is not specified, //! rusty-man might not work with new Rust versions that change the documentation format. +// The matches! macro was added in Rust 1.42, but our MSRV is 1.40. +#![allow(clippy::match_like_matches_macro)] + mod args; mod doc; mod index;