chore(lint): extend low-risk clippy cleanup batch
- normalize numeric literals (115_200) in hardware/peripheral config paths - remove test-only useless format! allocations in discord IDs - simplify closures and auto-deref in browser/http/rag/peripherals - keep behavior unchanged while reducing warning surface
This commit is contained in:
parent
4413790859
commit
abdf99cf8c
8 changed files with 12 additions and 14 deletions
|
|
@ -233,9 +233,7 @@ impl HardwareRag {
|
|||
if let Some(aliases) = self.pin_aliases.get(board) {
|
||||
for (alias, pin) in aliases {
|
||||
let alias_words: Vec<&str> = alias.split('_').collect();
|
||||
let matches = query_words
|
||||
.iter()
|
||||
.any(|qw| alias_words.iter().any(|aw| *aw == *qw))
|
||||
let matches = query_words.iter().any(|qw| alias_words.contains(qw))
|
||||
|| query_lower.contains(&alias.replace('_', " "));
|
||||
if matches {
|
||||
lines.push(format!("{board}: {alias} = pin {pin}"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue