Skip to content

Commit f348f08

Browse files
authored
fix(rust): avoid dead_code warnings in scripts registry
1 parent 76fa681 commit f348f08

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

rust/src/scripts.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use crate::error::Error;
99
#[derive(Debug, Clone)]
1010
pub struct LuaScript {
1111
/// The script name (e.g., "addStandardJob").
12+
#[allow(dead_code)]
1213
pub name: String,
1314
/// Number of KEYS arguments the script expects.
1415
pub num_keys: usize,
@@ -100,11 +101,6 @@ impl ScriptRegistry {
100101
self.scripts.get(name)
101102
}
102103

103-
/// Get all script names.
104-
pub fn names(&self) -> Vec<&str> {
105-
self.scripts.keys().map(|s| s.as_str()).collect()
106-
}
107-
108104
/// Ensure the named scripts are loaded into Redis using SCRIPT LOAD.
109105
///
110106
/// This is intended for pipelined operations where EVALSHA must succeed

0 commit comments

Comments
 (0)