diff --git a/asyncgit/src/sync/logwalker.rs b/asyncgit/src/sync/logwalker.rs index f7fbca5a..1a5cce4b 100644 --- a/asyncgit/src/sync/logwalker.rs +++ b/asyncgit/src/sync/logwalker.rs @@ -20,7 +20,7 @@ impl<'a> PartialEq for TimeOrderedCommit<'a> { impl<'a> PartialOrd for TimeOrderedCommit<'a> { fn partial_cmp(&self, other: &Self) -> Option { - self.0.time().partial_cmp(&other.0.time()) + Some(self.cmp(other)) } } diff --git a/filetreelist/src/item.rs b/filetreelist/src/item.rs index 482bd033..7f676885 100644 --- a/filetreelist/src/item.rs +++ b/filetreelist/src/item.rs @@ -202,7 +202,7 @@ impl PartialOrd for FileTreeItem { &self, other: &Self, ) -> Option { - self.info.full_path.partial_cmp(&other.info.full_path) + Some(self.cmp(other)) } } diff --git a/src/components/utils/filetree.rs b/src/components/utils/filetree.rs index 8bf144f7..c39b3d2d 100644 --- a/src/components/utils/filetree.rs +++ b/src/components/utils/filetree.rs @@ -120,7 +120,7 @@ impl PartialOrd for FileTreeItem { &self, other: &Self, ) -> Option { - self.info.full_path.partial_cmp(&other.info.full_path) + Some(self.cmp(other)) } }