message: Change error.rs code style, little bit
diff: @@ -13,8 +13,7 @@ fn error() {
  helper.run_and_print("CREATE TABLE TableA (id INTEGER);");
  helper.run_and_print("INSERT INTO TableA (id) VALUES (1);");
  - let test_cases = {
  - vec![
  + let test_cases = vec![
  (StoreError::SchemaNotFound.into(), "SELECT * FROM Nothing;"),
  (SelectError::TableNotFound.into(), "SELECT * FROM;"),
  (
  @@ -33,12 +32,11 @@ fn error() {
  JoinError::JoinTypeNotSupported.into(),
  "SELECT * FROM TableA CROSS JOIN TableA as A ON 1 = 2;",
  ),
  - ]
  - };
  + ];
  - for (error, sql) in test_cases.into_iter() {
  - helper.test_error(sql, error);
  - }
  + test_cases
  + .into_iter()
  + .for_each(|(error, sql)| helper.test_error(sql, error));
  helper.test_error(
  "SELECT TableA.* FROM TableA;",
  