sparsemat / sprs

sparse linear algebra library for rust
Apache License 2.0
381 stars 45 forks source link

Some pedantic clippy lints #249

Closed mulimoen closed 3 years ago

mulimoen commented 3 years ago

This is just a collection of clippy lints which are not enabled by default, but improves code consistency slightly. The documentation should be a bit prettier now with all doc_markdown lints fixed.

mulimoen commented 3 years ago

We can specify all these lints in lib.rs of every crate we have, but this will make the code somewhat unwieldy. There is still no way of setting workspace-wide linter options for clippy, clippy.toml is only for adjusting linter options, not enabling them.

Best option would be to copy-paste from the CI script, although this is suboptimal. The lints will probably not be triggered often though