Merge pull request #361 from quodlibetor/deny-dead-code

Remove unused constant, deny(dead_code)
This commit is contained in:
Brandon W Maister 2019-11-24 12:15:55 -05:00 committed by GitHub
commit 59059352c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) * Use markdown footnotes on the `strftime` docs page (@qudlibetor #359)
* Migrate from `try!` -> `?` (question mark) because it is now emitting * Migrate from `try!` -> `?` (question mark) because it is now emitting
deprecation warnings and has been stable since rustc 1.13.0 deprecation warnings and has been stable since rustc 1.13.0
* Deny dead code
## 0.4.9 ## 0.4.9

View File

@ -386,6 +386,7 @@
#![cfg_attr(feature = "bench", feature(test))] // lib stability features as per RFC #507 #![cfg_attr(feature = "bench", feature(test))] // lib stability features as per RFC #507
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(dead_code)]
#![cfg_attr(not(any(feature = "std", test)), no_std)] #![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 }) ($e:expr) => (match $e { Some(v) => v, None => return None })
} }
const EPOCH_NUM_DAYS_FROM_CE: i32 = 719_163;
mod div; mod div;
#[cfg(not(feature="clock"))] #[cfg(not(feature="clock"))]
mod oldtime; mod oldtime;