Skip to content

Commit

Permalink
Added various subcrates to workspace and solved code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Apr 16, 2024
1 parent 682a5e1 commit a285376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
minify_sql_proc = { path = "minify_sql_proc" }

[workspace]
members = [
"minify_sql",
"load_sql_proc",
"minify_sql_proc"
]
2 changes: 1 addition & 1 deletion minify_sql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit a285376

Please sign in to comment.