Skip to content

Commit f93c8a9

Browse files
committed
Add top level clippy allow const_static_lifetime
github: cc: chronotope#205
1 parent ac48f51 commit f93c8a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,12 @@
387387
#![deny(missing_docs)]
388388
#![deny(missing_debug_implementations)]
389389

390+
// The explicit 'static lifetimes are still needed for rustc 1.13-16
391+
// backward compatibility, and this appeases clippy. If minimum rustc
392+
// becomes 1.17, should be able to remove this, those 'static lifetimes,
393+
// and use `static` in a lot of places `const` is used now.
394+
#![allow(const_static_lifetime)]
395+
390396
extern crate time as oldtime;
391397
extern crate num;
392398
#[cfg(feature = "rustc-serialize")]

0 commit comments

Comments
 (0)