Skip to content

Commit d5fe563

Browse files
mkroeningdanielverkamp
authored andcommitted
fix(writer): clippy::incorrect_partial_ord_impl_on_ord_type
Signed-off-by: Martin Kröning <[email protected]>
1 parent e8f7f6d commit d5fe563

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Upcoming Release
2+
3+
## Fixed
4+
- [[#69](https://github.com/rust-vmm/vm-fdt/pull/69)] Fixed
5+
`clippy::incorrect_partial_ord_impl_on_ord_type`.
6+
17
# v0.2.0
28

39
## Added

src/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl Ord for FdtReserveEntry {
136136

137137
impl PartialOrd for FdtReserveEntry {
138138
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
139-
self.address.partial_cmp(&other.address)
139+
Some(self.cmp(other))
140140
}
141141
}
142142

0 commit comments

Comments
 (0)