Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ impl num::traits::FromPrimitive for Weekday {


/// The common set of methods for date component.
pub trait Datelike {
pub trait Datelike: Sized {
/// Returns the year number.
fn year(&self) -> i32;

Expand Down Expand Up @@ -550,7 +550,7 @@ pub trait Datelike {
}

/// The common set of methods for time component.
pub trait Timelike {
pub trait Timelike: Sized {
/// Returns the hour number from 0 to 23.
fn hour(&self) -> u32;

Expand Down