Derive PartialOrd, Ord, and Copy whenever possible (#717)

This allow other projects to use our structures inside others that need
those.
This commit is contained in:
Augusto Fotino 2022-11-30 14:25:59 -03:00 committed by GitHub
parent c429197340
commit 5e1d9f8d6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 106 additions and 106 deletions

View file

@ -1271,7 +1271,7 @@ fn parse_pg_unary_ops() {
let select = pg().verified_only_select(&format!("SELECT {}a", &str_op));
assert_eq!(
SelectItem::UnnamedExpr(Expr::UnaryOp {
op: op.clone(),
op: *op,
expr: Box::new(Expr::Identifier(Ident::new("a"))),
}),
select.projection[0]
@ -1287,7 +1287,7 @@ fn parse_pg_postfix_factorial() {
let select = pg().verified_only_select(&format!("SELECT a{}", &str_op));
assert_eq!(
SelectItem::UnnamedExpr(Expr::UnaryOp {
op: op.clone(),
op: *op,
expr: Box::new(Expr::Identifier(Ident::new("a"))),
}),
select.projection[0]