Skip to content

Commit 3195c54

Browse files
committed
fix: apply cargo fmt to resolve CI formatting issues
1 parent e548ea9 commit 3195c54

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

crates/redisctl/src/commands/enterprise/crdb_impl.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,7 @@ pub async fn get_conflicts(
605605
format!("/v1/crdbs/{}/conflicts", id)
606606
};
607607

608-
let result = client
609-
.get_raw(&url)
610-
.await
611-
.map_err(RedisCtlError::from)?;
608+
let result = client.get_raw(&url).await.map_err(RedisCtlError::from)?;
612609

613610
let data = handle_output(result, output_format, query)?;
614611
print_formatted_output(data, output_format)?;

crates/redisctl/src/commands/enterprise/database_impl.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,7 @@ pub async fn get_database_metrics(
393393
path.push_str(&format!("?interval={}", interval));
394394
}
395395

396-
let response = client
397-
.get_raw(&path)
398-
.await
399-
.map_err(RedisCtlError::from)?;
396+
let response = client.get_raw(&path).await.map_err(RedisCtlError::from)?;
400397

401398
let data = handle_output(response, output_format, query)?;
402399
print_formatted_output(data, output_format)?;
@@ -418,10 +415,7 @@ pub async fn get_database_slowlog(
418415
path.push_str(&format!("?limit={}", limit));
419416
}
420417

421-
let response = client
422-
.get_raw(&path)
423-
.await
424-
.map_err(RedisCtlError::from)?;
418+
let response = client.get_raw(&path).await.map_err(RedisCtlError::from)?;
425419

426420
let data = handle_output(response, output_format, query)?;
427421
print_formatted_output(data, output_format)?;

crates/redisctl/src/commands/enterprise/diagnostics.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ impl DiagnosticsCommands {
6868

6969
match self {
7070
DiagnosticsCommands::Get => {
71-
let config = handler
72-
.get_config()
73-
.await
74-
.map_err(RedisCtlError::from)?;
71+
let config = handler.get_config().await.map_err(RedisCtlError::from)?;
7572

7673
let output_data = if let Some(q) = query {
7774
super::utils::apply_jmespath(&config, q)?
@@ -131,10 +128,7 @@ impl DiagnosticsCommands {
131128
}
132129

133130
DiagnosticsCommands::ListChecks => {
134-
let checks = handler
135-
.list_checks()
136-
.await
137-
.map_err(RedisCtlError::from)?;
131+
let checks = handler.list_checks().await.map_err(RedisCtlError::from)?;
138132

139133
// Convert to JSON Value for output
140134
let response = serde_json::to_value(&checks)?;
@@ -182,10 +176,7 @@ impl DiagnosticsCommands {
182176
}
183177

184178
DiagnosticsCommands::ListReports => {
185-
let reports = handler
186-
.list_reports()
187-
.await
188-
.map_err(RedisCtlError::from)?;
179+
let reports = handler.list_reports().await.map_err(RedisCtlError::from)?;
189180

190181
// Convert to JSON Value for output
191182
let response = serde_json::to_value(&reports)?;

crates/redisctl/src/commands/enterprise/module_impl.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,7 @@ async fn handle_delete(
164164
let client = conn_mgr.create_enterprise_client(profile_name).await?;
165165
let handler = ModuleHandler::new(client);
166166

167-
handler
168-
.delete(uid)
169-
.await
170-
.map_err(RedisCtlError::from)?;
167+
handler.delete(uid).await.map_err(RedisCtlError::from)?;
171168

172169
// Print success message
173170
let result = serde_json::json!({

0 commit comments

Comments
 (0)