diff options
author | Ruben Pollan | 2018-12-10 15:30:03 +0100 |
---|---|---|
committer | Ruben Pollan | 2018-12-10 15:32:51 +0100 |
commit | 0afdb0b34eeefff033819f4f0930c960af8e17f8 (patch) | |
tree | cfe11590fa58fd8dc897dc4f58546093b5cb282d /src/calendar.rs | |
parent | baeba8f78097fe13183c71a04355b78b0fdd0920 (diff) |
Implement PartialOrd for dates and events
Diffstat (limited to '')
-rw-r--r-- | src/calendar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calendar.rs b/src/calendar.rs index fcec54e..a46795b 100644 --- a/src/calendar.rs +++ b/src/calendar.rs @@ -58,7 +58,7 @@ impl Calendar { } } - single.sort_by_key(|k| k.start); + single.sort(); Ok(Calendar { single, periodic }) } |