This is an automated email from the ASF dual-hosted git repository.
xudong963 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 70dbc8fead Fix a clippy warning (#14445)
70dbc8fead is described below
commit 70dbc8fead0be526c27baee866afb1cadbeb084e
Author: Matthijs Brobbel <[email protected]>
AuthorDate: Mon Feb 3 17:05:50 2025 +0100
Fix a clippy warning (#14445)
---
datafusion/sqllogictest/bin/postgres_container.rs | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/datafusion/sqllogictest/bin/postgres_container.rs
b/datafusion/sqllogictest/bin/postgres_container.rs
index 210b9b3e36..ef61abc12a 100644
--- a/datafusion/sqllogictest/bin/postgres_container.rs
+++ b/datafusion/sqllogictest/bin/postgres_container.rs
@@ -15,8 +15,6 @@
// specific language governing permissions and limitations
// under the License.
-#![cfg(feature = "postgres")]
-
use crate::Options;
use datafusion_common::Result;
use log::info;
@@ -144,8 +142,5 @@ async fn start_postgres(
}
fn is_pg_uri_set() -> bool {
- match env::var("PG_URI") {
- Ok(_) => true,
- Err(_) => false,
- }
+ env::var("PG_URI").is_ok()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]