From 923c47a408461b2edaceb5cb36685fc035244d56 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 27 May 2020 15:13:47 -0500 Subject: [PATCH] refactor ~ remove outdated clippy attributes --- src/uu/base32/Cargo.toml | 2 -- src/uu/chown/Cargo.toml | 4 ---- src/uu/chown/src/chown.rs | 2 -- src/uu/pinky/src/pinky.rs | 3 --- src/uu/who/Cargo.toml | 2 -- src/uu/who/src/who.rs | 3 --- tests/tests.rs | 2 -- 7 files changed, 18 deletions(-) diff --git a/src/uu/base32/Cargo.toml b/src/uu/base32/Cargo.toml index 99ce63aca..376b9c83c 100644 --- a/src/uu/base32/Cargo.toml +++ b/src/uu/base32/Cargo.toml @@ -17,8 +17,6 @@ path = "src/base32.rs" [dependencies] uucore = { version="0.0.4", package="uucore", git="https://github.com/uutils/uucore.git", branch="canary", features = ["encoding"] } uucore_procs = { version="0.0.4", package="uucore_procs", git="https://github.com/uutils/uucore.git", branch="canary" } -## optional -clippy = { version = "0.0.212", optional = true } [[bin]] name = "base32" diff --git a/src/uu/chown/Cargo.toml b/src/uu/chown/Cargo.toml index ba96f4806..46d65a0a9 100644 --- a/src/uu/chown/Cargo.toml +++ b/src/uu/chown/Cargo.toml @@ -20,10 +20,6 @@ uucore = { version="0.0.4", package="uucore", git="https://github.com/uutils/uuc uucore_procs = { version="0.0.4", package="uucore_procs", git="https://github.com/uutils/uucore.git", branch="canary" } walkdir = "2.2" -[dependencies.clippy] -version = "0.0.212" -optional = true - [[bin]] name = "chown" path = "src/main.rs" diff --git a/src/uu/chown/src/chown.rs b/src/uu/chown/src/chown.rs index acd6cb825..81f2d1e5b 100644 --- a/src/uu/chown/src/chown.rs +++ b/src/uu/chown/src/chown.rs @@ -4,8 +4,6 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -#![cfg_attr(feature = "clippy", feature(plugin))] -#![cfg_attr(feature = "clippy", plugin(clippy))] // spell-checker:ignore (ToDO) COMFOLLOW Chowner Passwd RFILE RFILE's derefer dgid duid diff --git a/src/uu/pinky/src/pinky.rs b/src/uu/pinky/src/pinky.rs index b9edb50a8..1d089450c 100644 --- a/src/uu/pinky/src/pinky.rs +++ b/src/uu/pinky/src/pinky.rs @@ -5,9 +5,6 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -#![cfg_attr(feature = "clippy", feature(plugin))] -#![cfg_attr(feature = "clippy", plugin(clippy))] - // spell-checker:ignore (ToDO) BUFSIZE gecos fullname, mesg iobuf #[macro_use] diff --git a/src/uu/who/Cargo.toml b/src/uu/who/Cargo.toml index 94b23299b..825852be8 100644 --- a/src/uu/who/Cargo.toml +++ b/src/uu/who/Cargo.toml @@ -17,8 +17,6 @@ path = "src/who.rs" [dependencies] uucore = { version="0.0.4", package="uucore", git="https://github.com/uutils/uucore.git", branch="canary", features=["utmpx"] } uucore_procs = { version="0.0.4", package="uucore_procs", git="https://github.com/uutils/uucore.git", branch="canary" } -## optional -clippy = { version = "0.0.212", optional = true } [[bin]] name = "who" diff --git a/src/uu/who/src/who.rs b/src/uu/who/src/who.rs index 47782503b..dd6090669 100644 --- a/src/uu/who/src/who.rs +++ b/src/uu/who/src/who.rs @@ -5,9 +5,6 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -#![cfg_attr(feature = "clippy", feature(plugin))] -#![cfg_attr(feature = "clippy", plugin(clippy))] - // spell-checker:ignore (ToDO) ttyname hostnames runlevel mesg wtmp statted boottime deadprocs initspawn clockchange curr runlvline pidstr exitstr hoststr #[macro_use] diff --git a/tests/tests.rs b/tests/tests.rs index 6361178fb..005ee5298 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,8 +1,6 @@ #[macro_use] mod common; -// [warning fix]; from ref: -#[cfg_attr(feature = "cargo-clippy", allow(useless_attribute))] #[allow(unused_imports)] #[cfg(unix)] #[macro_use]