Skip to content

Commit bf9c99a

Browse files
committed
Merge pull request #46 from frewsxcv/rfc-1214
Fix nightly warnings related to lifetimes
2 parents 68f45da + 98bc0ab commit bf9c99a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl num::traits::FromPrimitive for Weekday {
457457

458458

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

@@ -550,7 +550,7 @@ pub trait Datelike {
550550
}
551551

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

0 commit comments

Comments
 (0)