chore: Fix clippy violations from Cargo.toml (#15216)
/cc @maxdeviant Release Notes: - N/A
This commit is contained in:
parent
d755d29577
commit
86456ce379
25 changed files with 94 additions and 93 deletions
|
@ -1192,7 +1192,7 @@ mod tests {
|
|||
Err(anyhow!("cannot embed text containing a 'g' character"))
|
||||
} else {
|
||||
Ok(Embedding::new(
|
||||
('a'..'z')
|
||||
('a'..='z')
|
||||
.map(|char| text.chars().filter(|c| *c == char).count() as f32)
|
||||
.collect(),
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue