diff --git a/Cargo.lock b/Cargo.lock index cb12ab00..65ea6c8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2829,9 +2829,9 @@ dependencies = [ [[package]] name = "tiny_pretty" -version = "0.2.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "650d82e943da333637be9f1567d33d605e76810a26464edfd7ae74f7ef181e95" +checksum = "01ddaca72c626914165b5a0faf5fde225949dad80e52ff4c9f12ec5226fc36cc" [[package]] name = "tinystr" diff --git a/Cargo.toml b/Cargo.toml index 7c444ddf..4ceff557 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ serde_repr = "0.1" regex = "1.11.1" simplelog = "0.12.0" tempfile = "3.21.0" -tiny_pretty = "0.2.1" +tiny_pretty = "0.4.0" toml = "0.5.9" dir-test = "0.4" drop_bomb = "0.1.5" diff --git a/crates/squawk_fmt/tests/after/select.snap b/crates/squawk_fmt/tests/after/select.snap index da394e5d..a2e2cef2 100644 --- a/crates/squawk_fmt/tests/after/select.snap +++ b/crates/squawk_fmt/tests/after/select.snap @@ -10,8 +10,6 @@ select 'really long string ', 'another really long string'; -select - foo as "Quoted Alias" -from "Quoted Table"; +select foo as "Quoted Alias" from "Quoted Table"; select 1 as foo; diff --git a/crates/squawk_fmt/tests/after/select_comments.snap b/crates/squawk_fmt/tests/after/select_comments.snap index 4765b473..52d7ff93 100644 --- a/crates/squawk_fmt/tests/after/select_comments.snap +++ b/crates/squawk_fmt/tests/after/select_comments.snap @@ -5,9 +5,7 @@ input_file: crates/squawk_fmt/tests/before/select_comments.sql -- intentional new line follows, we should keep that /* bar */ -select - /*a*/ 1 /*b*/, - /*c*/ 2/*d*/; +select /*a*/ 1 /*b*/, /*c*/ 2/*d*/; select /*z*/; @@ -15,5 +13,4 @@ select /*a*/ *; select /*a*/ all /*b*/ 1; -select - /*a*/ distinct /*b*/ 1; +select /*a*/ distinct /*b*/ 1; diff --git a/crates/squawk_fmt/tests/after/select_literals.snap b/crates/squawk_fmt/tests/after/select_literals.snap index 530d06c7..20fe325b 100644 --- a/crates/squawk_fmt/tests/after/select_literals.snap +++ b/crates/squawk_fmt/tests/after/select_literals.snap @@ -9,28 +9,23 @@ select true; -- false select false; -- int number -select - 42; +select 42; -- numeric number select 3.14; -- string select 'hello'; -- esc string -select - e'esc\n'; +select e'esc\n'; -- unicode esc string select u&'unicode'; -- dollar quoted string -select - $$dollar$$; +select $$dollar$$; -- dollar quoted string with tag -select - $tag$body$tag$; +select $tag$body$tag$; -- bit string select b'1010'; -- byte string -select - x'AF'; +select x'AF'; -- positional param select $1; -- string continuation