From 120a5e4f92255734a30a90fb6981d9f5693463e5 Mon Sep 17 00:00:00 2001 From: Li Yazhou Date: Fri, 20 Dec 2024 16:57:35 +0800 Subject: [PATCH] fix clippy --- crates/catalog/s3tables/src/catalog.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/catalog/s3tables/src/catalog.rs b/crates/catalog/s3tables/src/catalog.rs index 8d1902b02..368b2106e 100644 --- a/crates/catalog/s3tables/src/catalog.rs +++ b/crates/catalog/s3tables/src/catalog.rs @@ -524,7 +524,7 @@ mod tests { }; let namespaces = catalog.list_namespaces(None).await.unwrap(); - assert!(namespaces.len() > 0); + assert!(!namespaces.is_empty()); } #[tokio::test] @@ -539,8 +539,7 @@ mod tests { .list_tables(&NamespaceIdent::new("aws_s3_metadata".to_string())) .await .unwrap(); - println!("{:?}", tables); - assert!(tables.len() > 0); + assert!(!tables.is_empty()); } #[tokio::test]