Skip to content

Commit

Permalink
Use lowercase as in rust
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Mar 14, 2024
1 parent 5bd3e2d commit e2c8044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions ee/tabby-db-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ impl Parse for Column {
input.parse::<Token![!]>()?;
}
let mut rename = None;
if input.peek(kw::AS) {
input.parse::<kw::AS>()?;
if input.peek(Token![as]) {
input.parse::<Token![as]>()?;
rename = Some(input.parse()?);
}
Ok(Column {
Expand All @@ -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<Self> {
let typ = input.parse()?;
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-db/src/job_runs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2c8044

Please sign in to comment.