We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0acedb commit 0dedc48Copy full SHA for 0dedc48
2 files changed
posts/2024/hello-world.mdx
src/pages/post.rs
@@ -18,7 +18,7 @@ pub struct PostDate {
18
19
impl PartialOrd for PostDate {
20
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
21
- Some((self.year, self.month, self.day).cmp(&(other.year, other.month, other.day)))
+ Some(self.cmp(other))
22
}
23
24
impl Ord for PostDate {
0 commit comments