Skip to content

Commit

Permalink
Version 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Dec 11, 2024
1 parent b5b483f commit 8f8d29e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 0.3.3

- Reduce binary size by removing regex dependency (#68)

### Version 0.3.2

- support ClickHouse/DuckDB join variants
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqlformat"
version = "0.3.2"
version = "0.3.3"
authors = ["Josh Holmer <[email protected]>"]
edition = "2021"
rust-version = "1.65"
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#![forbid(unsafe_code)]
// Maintains semver compatibility for older Rust versions
#![allow(clippy::manual_strip)]
// This lint is overly pedantic and annoying
#![allow(clippy::needless_lifetimes)]

mod formatter;
mod indentation;
Expand Down Expand Up @@ -1710,14 +1712,14 @@ mod tests {
#[test]
fn it_recognizes_fmt_off() {
let input = indoc!(
"SELECT * FROM sometable
"SELECT * FROM sometable
WHERE
-- comment test here
-- fmt: off
first_key.second_key = 1
-- json:first_key.second_key = 1
-- fmt: on
AND
AND
-- fm1t: off
first_key.second_key = 1
-- json:first_key.second_key = 1
Expand Down
2 changes: 1 addition & 1 deletion src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ fn get_uc_words(input: &str, words: usize) -> String {

fn get_top_level_reserved_token<'a>(
last_reserved_top_level_token: Option<Token<'a>>,
) -> impl FnMut(&'a str) -> IResult<&'a str, Token> {
) -> impl FnMut(&'a str) -> IResult<&'a str, Token<'a>> {
move |input: &'a str| {
let uc_input: String = get_uc_words(input, 3);

Expand Down

0 comments on commit 8f8d29e

Please sign in to comment.