From a1e98a67964be214edd3e6bf27dbd2820e0a7f19 Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Fri, 22 Jan 2021 00:27:28 +0200 Subject: [PATCH] Implement Ord for ParseLengthError --- src/util/uint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/uint.rs b/src/util/uint.rs index f58bdcdb..064ce121 100644 --- a/src/util/uint.rs +++ b/src/util/uint.rs @@ -494,7 +494,7 @@ construct_uint!(Uint256, 4); construct_uint!(Uint128, 2); /// Invalid slice length -#[derive(Debug, PartialEq, Eq, PartialOrd, Clone, Copy, Hash)] +#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)] /// Invalid slice length pub struct ParseLengthError { /// The length of the slice de-facto