From 16a5faf8863704d866182c256c78d35b4aef9c58 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 6 Jul 2021 11:49:02 +0200 Subject: [PATCH] Silent buggy clippy warnings --- src/uu/dirname/src/dirname.rs | 3 +++ src/uu/hostid/src/hostid.rs | 3 +++ src/uu/hostname/src/hostname.rs | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/uu/dirname/src/dirname.rs b/src/uu/dirname/src/dirname.rs index 63ee57272..8d85dc85e 100644 --- a/src/uu/dirname/src/dirname.rs +++ b/src/uu/dirname/src/dirname.rs @@ -5,6 +5,9 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. +// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] + #[macro_use] extern crate uucore; diff --git a/src/uu/hostid/src/hostid.rs b/src/uu/hostid/src/hostid.rs index b0f68968d..180c4d2e5 100644 --- a/src/uu/hostid/src/hostid.rs +++ b/src/uu/hostid/src/hostid.rs @@ -7,6 +7,9 @@ // spell-checker:ignore (ToDO) gethostid +// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] + #[macro_use] extern crate uucore; diff --git a/src/uu/hostname/src/hostname.rs b/src/uu/hostname/src/hostname.rs index 69602fc0a..5f05fa05c 100644 --- a/src/uu/hostname/src/hostname.rs +++ b/src/uu/hostname/src/hostname.rs @@ -7,6 +7,9 @@ // spell-checker:ignore (ToDO) MAKEWORD addrs hashset +// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] + #[macro_use] extern crate uucore;