deny(missing_debug_implementations)
This commit is contained in:
parent
1f625fe69d
commit
ce6ea4d8d1
|
@ -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<Tz: TimeZone>(DateTime<Tz>);
|
||||
|
||||
impl<Tz: TimeZone> From<TsSeconds<Tz>> for DateTime<Tz> {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<TsSeconds> for NaiveDateTime {
|
||||
|
|
|
@ -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.timestamp(0, 0);
|
||||
/// ~~~~
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct Local;
|
||||
|
||||
impl Local {
|
||||
|
|
Loading…
Reference in New Issue