Skip to content

Commit 8f8d29e

Browse files
committed
Version 0.3.3
1 parent b5b483f commit 8f8d29e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Version 0.3.3
2+
3+
- Reduce binary size by removing regex dependency (#68)
4+
15
### Version 0.3.2
26

37
- support ClickHouse/DuckDB join variants

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlformat"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
authors = ["Josh Holmer <[email protected]>"]
55
edition = "2021"
66
rust-version = "1.65"

src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#![forbid(unsafe_code)]
77
// Maintains semver compatibility for older Rust versions
88
#![allow(clippy::manual_strip)]
9+
// This lint is overly pedantic and annoying
10+
#![allow(clippy::needless_lifetimes)]
911

1012
mod formatter;
1113
mod indentation;
@@ -1710,14 +1712,14 @@ mod tests {
17101712
#[test]
17111713
fn it_recognizes_fmt_off() {
17121714
let input = indoc!(
1713-
"SELECT * FROM sometable
1715+
"SELECT * FROM sometable
17141716
WHERE
17151717
-- comment test here
17161718
-- fmt: off
17171719
first_key.second_key = 1
17181720
-- json:first_key.second_key = 1
17191721
-- fmt: on
1720-
AND
1722+
AND
17211723
-- fm1t: off
17221724
first_key.second_key = 1
17231725
-- json:first_key.second_key = 1

src/tokenizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fn get_uc_words(input: &str, words: usize) -> String {
478478

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

0 commit comments

Comments
 (0)