fix clippy

This commit is contained in:
Pere Diaz Bou
2025-03-27 17:54:32 +01:00
parent 9291f60722
commit d01423df83
2 changed files with 0 additions and 4 deletions

View File

@@ -314,7 +314,6 @@ impl PartialOrd<OwnedValue> for OwnedValue {
(Self::Null, Self::Null) => Some(std::cmp::Ordering::Equal),
(Self::Null, _) => Some(std::cmp::Ordering::Less),
(_, Self::Null) => Some(std::cmp::Ordering::Greater),
other => todo!("{:?}", other),
}
}
}
@@ -654,7 +653,6 @@ impl PartialOrd<OwnedValue> for RefValue {
(Self::Null, OwnedValue::Null) => Some(std::cmp::Ordering::Equal),
(Self::Null, _) => Some(std::cmp::Ordering::Less),
(_, OwnedValue::Null) => Some(std::cmp::Ordering::Greater),
other => todo!("{:?}", other),
}
}
}
@@ -698,7 +696,6 @@ impl PartialOrd<RefValue> for OwnedValue {
(Self::Null, RefValue::Null) => Some(std::cmp::Ordering::Equal),
(Self::Null, _) => Some(std::cmp::Ordering::Less),
(_, RefValue::Null) => Some(std::cmp::Ordering::Greater),
other => todo!("{:?}", other),
}
}
}

View File

@@ -79,7 +79,6 @@ mod tests {
limbo_core::OwnedValue::Float(x) => rusqlite::types::Value::Real(*x),
limbo_core::OwnedValue::Text(x) => rusqlite::types::Value::Text(x.to_string()),
limbo_core::OwnedValue::Blob(x) => rusqlite::types::Value::Blob(x.to_vec()),
_ => unreachable!(),
})
.collect();
rows.push(row);