We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e54b16b commit 1df4982Copy full SHA for 1df4982
src/schema/common.rs
@@ -226,10 +226,9 @@ pub struct Field {
226
pub(crate) aliases: Option<Vec<String>>,
227
}
228
229
-// TODO do we also use order for equality?
230
impl std::cmp::PartialEq for Field {
231
fn eq(&self, other: &Self) -> bool {
232
- self.name == other.name && self.ty == other.ty
+ self.name == other.name && self.ty == other.ty && self.order == other.order
233
234
235
src/schema/parser.rs
@@ -439,7 +439,7 @@ mod tests {
439
"value",
440
Variant::Long,
441
Some(Value::Long(1)),
442
- Order::Ascending,
+ Order::Descending,
443
None,
444
)
445
.unwrap();
0 commit comments