mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-08 23:21:04 +08:00
chore(proxy): remove unused body filter helper
Remove unused `filter_recursive` function from body_filter.rs to fix `dead-code` warning from `cargo clippy -- -D warnings`.
This commit is contained in:
@@ -68,12 +68,6 @@ pub fn filter_private_params_with_whitelist(body: Value, whitelist: &[String]) -
|
||||
filter_recursive_with_whitelist(body, &mut Vec::new(), &whitelist_set)
|
||||
}
|
||||
|
||||
/// 递归过滤实现
|
||||
#[cfg(test)]
|
||||
fn filter_recursive(value: Value, removed_keys: &mut Vec<String>) -> Value {
|
||||
filter_recursive_with_whitelist(value, removed_keys, &HashSet::new())
|
||||
}
|
||||
|
||||
/// 递归过滤实现(支持白名单)
|
||||
fn filter_recursive_with_whitelist(
|
||||
value: Value,
|
||||
|
||||
Reference in New Issue
Block a user