deny(missing_debug_implementations)

This commit is contained in:
Brandon W Maister 2017-06-26 11:48:13 -05:00
parent 1f625fe69d
commit ce6ea4d8d1
5 changed files with 5 additions and 2 deletions

View File

@ -570,6 +570,7 @@ pub mod rustc_serialize {
/// A `DateTime` that can be deserialized from a timestamp /// A `DateTime` that can be deserialized from a timestamp
/// ///
/// A timestamp here is seconds since the epoch /// A timestamp here is seconds since the epoch
#[derive(Debug)]
pub struct TsSeconds<Tz: TimeZone>(DateTime<Tz>); pub struct TsSeconds<Tz: TimeZone>(DateTime<Tz>);
impl<Tz: TimeZone> From<TsSeconds<Tz>> for DateTime<Tz> { impl<Tz: TimeZone> From<TsSeconds<Tz>> for DateTime<Tz> {

View File

@ -149,7 +149,7 @@ Notes:
use super::{Item, Numeric, Fixed, Pad}; use super::{Item, Numeric, Fixed, Pad};
/// Parsing iterator for `strftime`-like format strings. /// Parsing iterator for `strftime`-like format strings.
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct StrftimeItems<'a> { pub struct StrftimeItems<'a> {
/// Remaining portion of the string. /// Remaining portion of the string.
remainder: &'a str, remainder: &'a str,

View File

@ -359,6 +359,7 @@
#![cfg_attr(bench, feature(test))] // lib stability features as per RFC #507 #![cfg_attr(bench, feature(test))] // lib stability features as per RFC #507
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)]
extern crate time as oldtime; extern crate time as oldtime;
extern crate num; extern crate num;

View File

@ -1475,6 +1475,7 @@ pub mod rustc_serialize {
} }
/// A `DateTime` that can be deserialized from a seconds-based timestamp /// A `DateTime` that can be deserialized from a seconds-based timestamp
#[derive(Debug)]
pub struct TsSeconds(NaiveDateTime); pub struct TsSeconds(NaiveDateTime);
impl From<TsSeconds> for NaiveDateTime { impl From<TsSeconds> for NaiveDateTime {

View File

@ -77,7 +77,7 @@ fn datetime_to_timespec(d: &NaiveDateTime, local: bool) -> oldtime::Timespec {
/// let dt: DateTime<Local> = Local::now(); /// let dt: DateTime<Local> = Local::now();
/// let dt: DateTime<Local> = Local.timestamp(0, 0); /// let dt: DateTime<Local> = Local.timestamp(0, 0);
/// ~~~~ /// ~~~~
#[derive(Copy, Clone)] #[derive(Copy, Clone, Debug)]
pub struct Local; pub struct Local;
impl Local { impl Local {