From 056ef19fb1be3fded10a55523ac054a0261175a9 Mon Sep 17 00:00:00 2001 From: pgab Date: Wed, 5 Sep 2018 10:55:56 +0200 Subject: [PATCH] minor modifications: * removed some (useless?) output * also ran clippy, note there is a warning about: ``` warning: cannot find type `As` in this scope --> src/oracle/query_builder/alias.rs:17:24 | 17 | #[derive(Debug, Clone, QueryId)] | ^^^^^^^ names from parent modules are not accessible without an explicit import | = note: #[warn(proc_macro_derive_resolution_fallback)] on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #50504 ``` which seems to be fixed with /~https://github.com/diesel-rs/diesel/pull/1787 which has not been released yet --- src/test/mod.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/test/mod.rs b/src/test/mod.rs index 1fc3fff..93a956b 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -33,7 +33,6 @@ fn database_url_from_env(backend_specific_env_var: &str) -> String { dotenv().ok(); match env::var(backend_specific_env_var) { Ok(val) => { - println!(r#"cargo:rustc-cfg=feature="backend_specific_database_url""#); val } _ => env::var("OCI_DATABASE_URL") @@ -1519,7 +1518,7 @@ fn transaction_nested_rollback_rollback_rollback() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::(|| { + let _inner_inner = conn.transaction::(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1567,7 +1566,7 @@ fn transaction_nested_rollback_rollback_commit() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::<_, Error, _>(|| { + let _inner_inner = conn.transaction::<_, Error, _>(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1615,7 +1614,7 @@ fn transaction_nested_commit_commit_commit() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::<_, Error, _>(|| { + let _inner_inner = conn.transaction::<_, Error, _>(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1662,7 +1661,7 @@ fn transaction_nested_commit_commit_rollback() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::(|| { + let _inner_inner = conn.transaction::(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1709,7 +1708,7 @@ fn transaction_nested_commit_rollback_rollback() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::(|| { + let _inner_inner = conn.transaction::(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1756,7 +1755,7 @@ fn transaction_nested_rollback_commit_commit() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::<_, Error, _>(|| { + let _inner_inner = conn.transaction::<_, Error, _>(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1804,7 +1803,7 @@ fn transaction_nested_commit_rollback_commit() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::<_, Error, _>(|| { + let _inner_inner = conn.transaction::<_, Error, _>(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner = @@ -1851,7 +1850,7 @@ fn transaction_nested_rollback_commit_rollback() { self::test::dsl::test.load::<(Option, Option, Option)>(&conn)?; assert_eq!(ret_inner.len(), 2); - let inner_inner = conn.transaction::(|| { + let _inner_inner = conn.transaction::(|| { let sql_inner_inner = format!("INSERT INTO test ({}) VALUES ({})", "TST_CHR", TEST_VARCHAR); let _ret_inner_inner = conn.execute(&*sql_inner_inner)?; let ret_inner_inner =