From 41700d101eea01c6f43917304f122dfbfac0ff86 Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Sat, 23 Nov 2019 19:56:24 -0500 Subject: [PATCH] Remove unused constant, deny(dead_code) --- CHANGELOG.md | 1 + src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80cd045..43f9b85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Versions with only mechanical changes will be omitted from the following list. * Use markdown footnotes on the `strftime` docs page (@qudlibetor #359) * Migrate from `try!` -> `?` (question mark) because it is now emitting deprecation warnings and has been stable since rustc 1.13.0 +* Deny dead code ## 0.4.9 diff --git a/src/lib.rs b/src/lib.rs index bf3c151..ef76a7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -386,6 +386,7 @@ #![cfg_attr(feature = "bench", feature(test))] // lib stability features as per RFC #507 #![deny(missing_docs)] #![deny(missing_debug_implementations)] +#![deny(dead_code)] #![cfg_attr(not(any(feature = "std", test)), no_std)] @@ -465,8 +466,6 @@ macro_rules! try_opt { ($e:expr) => (match $e { Some(v) => v, None => return None }) } -const EPOCH_NUM_DAYS_FROM_CE: i32 = 719_163; - mod div; #[cfg(not(feature="clock"))] mod oldtime;