Merge pull request #46 from frewsxcv/rfc-1214

Fix nightly warnings related to lifetimes
This commit is contained in:
Kang Seonghoon 2015-09-05 19:08:06 +09:00
commit bf9c99ae3e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
@ -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;