From 4748225550acc92179e18490c299cc94ccc2bf51 Mon Sep 17 00:00:00 2001 From: David Kellum Date: Fri, 12 Jan 2018 16:17:53 -0800 Subject: [PATCH] allow(const_static_lifetime) is for feature cargo-clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1cd9fb3..4e37d30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -391,7 +391,7 @@ // backward compatibility, and this appeases clippy. If minimum rustc // becomes 1.17, should be able to remove this, those 'static lifetimes, // and use `static` in a lot of places `const` is used now. -#![allow(const_static_lifetime)] +#![cfg_attr(feature = "cargo-clippy", allow(const_static_lifetime))] extern crate time as oldtime; extern crate num;