diff --git a/prqlc/bindings/prqlc-python/src/lib.rs b/prqlc/bindings/prqlc-python/src/lib.rs index b78be94f1aab..0a4e6d11965f 100644 --- a/prqlc/bindings/prqlc-python/src/lib.rs +++ b/prqlc/bindings/prqlc-python/src/lib.rs @@ -167,7 +167,6 @@ pub fn get_targets() -> Vec { prqlc_lib::Target::names() } -#[cfg(not(feature = "extension-module"))] #[cfg(test)] mod test { use insta::assert_snapshot; diff --git a/prqlc/prqlc-macros/Cargo.toml b/prqlc/prqlc-macros/Cargo.toml index 856de0cad4e9..450682e66143 100644 --- a/prqlc/prqlc-macros/Cargo.toml +++ b/prqlc/prqlc-macros/Cargo.toml @@ -10,7 +10,7 @@ version.workspace = true [lib] doctest = false -proc_macro = true +proc-macro = true test = false [dependencies] diff --git a/prqlc/prqlc/src/sql/gen_query.rs b/prqlc/prqlc/src/sql/gen_query.rs index 4d13dec9fabe..2baf8604c091 100644 --- a/prqlc/prqlc/src/sql/gen_query.rs +++ b/prqlc/prqlc/src/sql/gen_query.rs @@ -473,11 +473,7 @@ pub(super) fn translate_query_sstring( let string = translate_sstring(items, ctx)?; let re = Regex::new(r"(?i)^SELECT\b").unwrap(); - let prefix = if let Some(string) = string.trim().get(0..7) { - string - } else { - "" - }; + let prefix = string.trim().get(0..7).unwrap_or_default(); if re.is_match(prefix) { if let Some(string) = string.trim().strip_prefix(prefix) {