-
Looks that a lot of pedantic rules are really useful to improve/unify style.
Command of manually chosen clippy rules
```
cargo clippy -- -Wclippy::bool_to_int_with_if -Wclippy::checked_conversions…
-
How about activating [pre-commit](https://pre-commit.com/) here? e.g. [this repo](https://github.com/doublify/pre-commit-rust/blob/master/.pre-commit-hooks.yaml) provides `fmt`, `check` and `clippy`
-
![](https://i.imgur.com/QLx2MIm.png)
The error message is `Unexpected public`, but Clippy removes the `c`. :cry:
-
I'm not sure if this is a bug in rustic, rust-analyzer, or lsp, and I haven't been very successful in tracking down what's going on, so feel free to point me elsewhere. When I open a file in the [core…
-
Some tools are needed to keep a good quality:
- commitizen to have conventional commits
- rustfmt
- clippy
- pre-commits hooks
-
### Summary
Sample Code: go to https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f52e65454f24681df967fd173371e07b and run clippy.
```rust
#![warn(clippy::indexing_slicing)]…
-
### Summary
We used to lint on `Some(1).as_ref().map(|x| *x)`, but no longer do. The interaction between the two lints `useless_asref` and `map_clone` is important here.
Some more context (where this…
-
I tried this code:
```sh
$ cargo clippy --fix
```
I expected to see this happen: That clippy can apply the fixes without generating broken code.
Instead, this happened: Clippy created a…
-
When I toggle on comments in makefile tasks with `editor.action.commentLine`, then I want the `#` to appear at the very start of the line, not nested after a tab.
make, unlike other common scriptin…
-
### What it does
It suggests replacing `impl Iterator` with a wrapper type, if the function is public (other crates can call it).
The `impl Trait` syntax erases types completely, which makes it impo…