Skip to content

Commit

Permalink
Merge pull request #46 from frewsxcv/rfc-1214
Browse files Browse the repository at this point in the history
Fix nightly warnings related to lifetimes
  • Loading branch information
lifthrasiir committed Sep 5, 2015
2 parents 68f45da + 98bc0ab commit bf9c99a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit bf9c99a

Please sign in to comment.