From 6f6498c04c69cd420dcab71c4762eade2c6915ee Mon Sep 17 00:00:00 2001 From: meteorgan Date: Fri, 10 Jan 2025 22:50:27 +0800 Subject: [PATCH] fix clippy --- integrations/object_store/examples/s3_with_opts.rs | 10 +++++----- integrations/object_store/tests/behavior/utils.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integrations/object_store/examples/s3_with_opts.rs b/integrations/object_store/examples/s3_with_opts.rs index 2ede6c5e71c2..293927bd60bc 100644 --- a/integrations/object_store/examples/s3_with_opts.rs +++ b/integrations/object_store/examples/s3_with_opts.rs @@ -11,11 +11,11 @@ use std::time::Duration; async fn main() { // Configure S3 let mut cfg = S3Config::default(); - cfg.access_key_id = Some("minioadmin".to_string()); - cfg.secret_access_key = Some("minioadmin".to_string()); - cfg.endpoint = Some("http://127.0.0.1:9000".to_string()); - cfg.region = Some("local".to_string()); - cfg.bucket = "first-bucket".to_string(); + cfg.access_key_id = Some("my_access_key".to_string()); + cfg.secret_access_key = Some("my_secret_key".to_string()); + cfg.endpoint = Some("my_endpoint".to_string()); + cfg.region = Some("my_region".to_string()); + cfg.bucket = "my_bucket".to_string(); // Create a new operator let operator = Operator::from_config(cfg).unwrap().finish(); diff --git a/integrations/object_store/tests/behavior/utils.rs b/integrations/object_store/tests/behavior/utils.rs index a41e5de336eb..b509a048a004 100644 --- a/integrations/object_store/tests/behavior/utils.rs +++ b/integrations/object_store/tests/behavior/utils.rs @@ -21,5 +21,5 @@ where } pub fn new_file_path(dir: &str) -> String { - format!("{}/{}", dir, uuid::Uuid::new_v4().to_string()) + format!("{}/{}", dir, uuid::Uuid::new_v4()) }