Fix build.

This commit is contained in:
Stephen Chung 2022-01-13 21:01:56 +08:00
parent 09aa9fc3db
commit 510c201d2f

View File

@ -63,10 +63,13 @@ impl PartialOrd for FnMetadata {
impl Ord for FnMetadata {
fn cmp(&self, other: &Self) -> Ordering {
match self.name.cmp(&other.name) {
#[cfg(feature = "metadata")]
Ordering::Equal => match self.params.cmp(&other.params) {
Ordering::Equal => self.params_info.cmp(&other.params_info),
cmp => cmp,
},
#[cfg(not(feature = "metadata"))]
Ordering::Equal => self.params.cmp(&other.params),
cmp => cmp,
}
}