| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| let a = a.map(|f| *f as f32); | ||
| let b = b.map(|f| *f as f32); | ||
| let a = a.map(|f| *f); | ||
| let b = b.map(|f| *f); |
There was a problem hiding this comment.
If this function is testing the dot product, those 2 lines are useless and should be removed. They are overwriting the arrays with the same arrays.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks. Good catch. Fixed.
Sorry, something went wrong.
|
Thanks for the cleanup. What were you using to catch all of these? Did you do it by hand? If there's a way to automate it, we should add it to the CI |
Sorry, something went wrong.
Hey, I actually run: I didn't push it in the github workflow because it may be overly strict but I can add it if its desired |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I noticed several duplicated clippy::many_single_char_names allows across files, removed a few unnecessary uses of the vec! macro for literal values, and cleaned up some redundant clone() calls where the type implements Copy. I also elided one unnecessary lifetime annotation and removed a few cases of unnecessary borrowing. Also ran cargo fmt --all for good measure.