Skip to content

Conversation

@RPG-Alex
Copy link
Contributor

@RPG-Alex RPG-Alex commented Jan 9, 2026

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.

tests/oper.rs Outdated
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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Good catch. Fixed.

@akern40
Copy link
Collaborator

akern40 commented Jan 10, 2026

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

@akern40 akern40 merged commit 6fd0a9d into rust-ndarray:master Jan 10, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants