diff --git a/Cargo.toml b/Cargo.toml index a83b609..f8b15ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,11 @@ authors = ["Marco Visani"] [dependencies] minify_sql = { path = "minify_sql" } load_sql_proc = { path = "load_sql_proc" } -minify_sql_proc = { path = "minify_sql_proc" } \ No newline at end of file +minify_sql_proc = { path = "minify_sql_proc" } + +[workspace] +members = [ + "minify_sql", + "load_sql_proc", + "minify_sql_proc" +] \ No newline at end of file diff --git a/minify_sql/src/lib.rs b/minify_sql/src/lib.rs index f45b111..fa33c40 100644 --- a/minify_sql/src/lib.rs +++ b/minify_sql/src/lib.rs @@ -37,7 +37,7 @@ pub fn minify_sql(document: &str) -> String { // We need to this first, as the multiline comments can span multiple lines // and if we remove the line breaks first, we might accidentally add new // combinations of characters that seem to be an open or close comment. - let document_without_multiline_comments = remove_multiline_comments(&document); + let document_without_multiline_comments = remove_multiline_comments(document); // We remove in all lines of the file the single line comments let mut document_without_comments =