Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonShin committed Jul 13, 2024
1 parent 76518a7 commit 61caf9d
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ mod tests {
let stmt = sql_ast[0].clone();
if let Statement::Query(query) = stmt {
let body = *query.body;
match body {
SetExpr::Select(select) => {
let select_item = select.projection[0].clone();
let table_with_joins = select.from;
if let SetExpr::Select(select) = body {
let select_item = select.projection[0].clone();
let table_with_joins = select.from;

let result = translate_table_with_joins(&Some(table_with_joins), &select_item);
let result = translate_table_with_joins(&Some(table_with_joins), &select_item);

assert_eq!(Some("items".to_string()), result)
}
_ => (),
assert_eq!(Some("items".to_string()), result)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion tests/generate_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#[cfg(test)]
mod generate_path_tests {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use std::env;
use std::fs;
use std::io::Write;
Expand Down
1 change: 0 additions & 1 deletion tests/mysql_delete_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod mysql_delete_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/mysql_insert_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod mysql_insert_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/mysql_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod mysql_query_parameters_tests {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/mysql_update_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod mysql_update_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/postgres_delete_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod mysql_delete_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/postgres_insert_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod postgres_insert_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/postgres_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod postgres_query_parameters_tests {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use std::env;
use std::fs;
use std::io::Write;
Expand Down
1 change: 0 additions & 1 deletion tests/postgres_update_query_parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod postgres_update_query_parameters {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use pretty_assertions::assert_eq;
use std::env;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion tests/sqlxrc_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#[cfg(test)]
mod sqlxrc_file {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use std::env;
use std::fs;
use std::io::Write;
Expand Down
1 change: 0 additions & 1 deletion tests/string_functions.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(test)]
mod string_functions_tests {
use assert_cmd::prelude::*;
use predicates::prelude::*;
use std::env;
use std::fs;
use std::io::Write;
Expand Down

0 comments on commit 61caf9d

Please sign in to comment.