diff --git a/ee/tabby-db-macros/src/lib.rs b/ee/tabby-db-macros/src/lib.rs index 93efcb07e301..f726551b5b1d 100644 --- a/ee/tabby-db-macros/src/lib.rs +++ b/ee/tabby-db-macros/src/lib.rs @@ -17,8 +17,8 @@ impl Parse for Column { input.parse::()?; } let mut rename = None; - if input.peek(kw::AS) { - input.parse::()?; + if input.peek(Token![as]) { + input.parse::()?; rename = Some(input.parse()?); } Ok(Column { @@ -39,12 +39,6 @@ struct PaginationQueryInput { pub backwards: Ident, } -mod kw { - use syn::custom_keyword; - - custom_keyword!(AS); -} - impl Parse for PaginationQueryInput { fn parse(input: syn::parse::ParseStream) -> syn::Result { let typ = input.parse()?; diff --git a/ee/tabby-db/src/job_runs.rs b/ee/tabby-db/src/job_runs.rs index 8224ab92b963..b6e86ecb5e13 100644 --- a/ee/tabby-db/src/job_runs.rs +++ b/ee/tabby-db/src/job_runs.rs @@ -77,13 +77,13 @@ impl DbConn { "job_runs", [ "id", - "job" AS "name", + "job" as "name", "exit_code", "stdout", "stderr", "created_at"!, "updated_at"!, - "end_ts" AS "finished_at" + "end_ts" as "finished_at" ], limit, skip_id,