From ce6ea4d8d17c557afdb2b9d7728d1ee19de315d2 Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Mon, 26 Jun 2017 11:48:13 -0500 Subject: [PATCH] deny(missing_debug_implementations) --- src/datetime.rs | 1 + src/format/strftime.rs | 2 +- src/lib.rs | 1 + src/naive/datetime.rs | 1 + src/offset/local.rs | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/datetime.rs b/src/datetime.rs index 5934b21..9c440e8 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -570,6 +570,7 @@ pub mod rustc_serialize { /// A `DateTime` that can be deserialized from a timestamp /// /// A timestamp here is seconds since the epoch + #[derive(Debug)] pub struct TsSeconds(DateTime); impl From> for DateTime { diff --git a/src/format/strftime.rs b/src/format/strftime.rs index 4e015d3..ce1932d 100644 --- a/src/format/strftime.rs +++ b/src/format/strftime.rs @@ -149,7 +149,7 @@ Notes: use super::{Item, Numeric, Fixed, Pad}; /// Parsing iterator for `strftime`-like format strings. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct StrftimeItems<'a> { /// Remaining portion of the string. remainder: &'a str, diff --git a/src/lib.rs b/src/lib.rs index bc393f5..d519b2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -359,6 +359,7 @@ #![cfg_attr(bench, feature(test))] // lib stability features as per RFC #507 #![deny(missing_docs)] +#![deny(missing_debug_implementations)] extern crate time as oldtime; extern crate num; diff --git a/src/naive/datetime.rs b/src/naive/datetime.rs index 0a022d4..cf976e6 100644 --- a/src/naive/datetime.rs +++ b/src/naive/datetime.rs @@ -1475,6 +1475,7 @@ pub mod rustc_serialize { } /// A `DateTime` that can be deserialized from a seconds-based timestamp + #[derive(Debug)] pub struct TsSeconds(NaiveDateTime); impl From for NaiveDateTime { diff --git a/src/offset/local.rs b/src/offset/local.rs index 1f65f1a..6aa4ab7 100644 --- a/src/offset/local.rs +++ b/src/offset/local.rs @@ -77,7 +77,7 @@ fn datetime_to_timespec(d: &NaiveDateTime, local: bool) -> oldtime::Timespec { /// let dt: DateTime = Local::now(); /// let dt: DateTime = Local.timestamp(0, 0); /// ~~~~ -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] pub struct Local; impl Local {