From f93c8a993d247ad60c2bc1a52a36df5890037830 Mon Sep 17 00:00:00 2001 From: David Kellum Date: Fri, 12 Jan 2018 15:11:47 -0800 Subject: [PATCH] Add top level clippy allow const_static_lifetime github: cc: #205 --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c20ff58..1cd9fb3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -387,6 +387,12 @@ #![deny(missing_docs)] #![deny(missing_debug_implementations)] +// The explicit 'static lifetimes are still needed for rustc 1.13-16 +// 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)] + extern crate time as oldtime; extern crate num; #[cfg(feature = "rustc-serialize")]