chore(lint): clean up clippy warnings across workspace
Auto-applied cargo clippy --fix across 11 files — needless return, unnecessary cast, map_or simplification, repeat().take() → repeat_n(), iter().any() → contains(), manual char comparison, lifetime elision, push_str single-char, reference immediately dereferenced. Also fixed three lints on file_storage.rs manually: two doc-list-item overindentations, plus the same needless-return. Baseline main was not clippy-clean with -D warnings before; after this pass one needless_range_loop warning remains (live.rs:1089) that clippy's suggested rewrite would make less readable — left for a dedicated refactor session. Build + workspace tests remain green (245 passing, 0 failing, 1 ignored).
This commit is contained in:
@@ -1155,12 +1155,10 @@ fn longest_common_token_subsequence(a: &[&str], b: &[&str]) -> usize {
|
||||
}
|
||||
|
||||
fn is_low_signal_token(token: &str) -> bool {
|
||||
LOW_SIGNAL_TOKENS
|
||||
.iter()
|
||||
.any(|low_signal| *low_signal == token)
|
||||
LOW_SIGNAL_TOKENS.contains(&token)
|
||||
}
|
||||
|
||||
fn meaningful_tokens<'a>(text: &'a str) -> Vec<&'a str> {
|
||||
fn meaningful_tokens(text: &str) -> Vec<&str> {
|
||||
text.split_whitespace()
|
||||
.filter(|token| !token.is_empty() && token.len() > 1 && !is_low_signal_token(token))
|
||||
.collect()
|
||||
|
||||
Reference in New Issue
Block a user