From fc12db809279faf6e1534fe9604205297d3cab0b Mon Sep 17 00:00:00 2001 From: Brandur Leach Date: Thu, 11 Apr 2024 21:09:42 +1200 Subject: [PATCH] Fix miscellaneous Clippy problems (#72) Fix miscellaneous Clippy problems that are now occurring on nightly. --- src/error.rs | 1 - src/redis/mod.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index 3504cd9..dd4168a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,4 +1,3 @@ -use std; use std::error; use std::fmt; diff --git a/src/redis/mod.rs b/src/redis/mod.rs index a625f32..90c0ba4 100644 --- a/src/redis/mod.rs +++ b/src/redis/mod.rs @@ -4,7 +4,7 @@ // We have to disable a couple Clippy checks here because we'll otherwise have // warnings thrown from within macros provided by the `bigflags` package. #[cfg_attr( - feature = "cargo-clippy", + feature = "clippy", allow(clippy::redundant_field_names, clippy::suspicious_arithmetic_impl) )] pub mod raw; @@ -13,7 +13,6 @@ use error::CellError; use libc::{c_int, c_long, c_longlong, size_t}; use std::ptr; use std::string; -use time; /// `LogLevel` is a level of logging to be specified with a Redis log directive. #[derive(Clone, Copy, Debug)]