Skip to content

Commit 4be3283

Browse files
committed
fix: address clippy warnings in diagnostics commands
- Add #[allow(dead_code)] attributes for methods used via trait impl - Add #[allow(dead_code)] for helper functions - Ensure all clippy checks pass with -D warnings flag
1 parent 88676e8 commit 4be3283

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub enum DiagnosticsCommands {
5454
}
5555

5656
impl DiagnosticsCommands {
57+
#[allow(dead_code)]
5758
pub async fn execute(
5859
&self,
5960
conn_mgr: &ConnectionManager,
@@ -201,6 +202,7 @@ impl DiagnosticsCommands {
201202
}
202203
}
203204

205+
#[allow(dead_code)]
204206
pub async fn handle_diagnostics_command(
205207
conn_mgr: &ConnectionManager,
206208
profile_name: Option<&str>,
@@ -214,6 +216,7 @@ pub async fn handle_diagnostics_command(
214216
}
215217

216218
// Helper functions
219+
#[allow(dead_code)]
217220
fn parse_comma_separated(input: &Option<String>) -> Option<Vec<String>> {
218221
input.as_ref().map(|s| {
219222
s.split(',')
@@ -223,6 +226,7 @@ fn parse_comma_separated(input: &Option<String>) -> Option<Vec<String>> {
223226
})
224227
}
225228

229+
#[allow(dead_code)]
226230
fn parse_comma_separated_u32(input: &Option<String>) -> Option<Vec<u32>> {
227231
input.as_ref().and_then(|s| {
228232
let values: Result<Vec<u32>, _> = s

0 commit comments

Comments
 (0)