-
### Summary
After upgrading to rust 1.67.0 `clippy --fix` now fails if you have any untracked files in your git repository. I now have to pass the `--allow-dirty` flag to use `clippy --fix`. I d…
-
Currently the no-panics lint checks that clippy has been configured in a way to deny all panics. That creates a bit of boilerplatey noise, as we add the same attributes at the top of each crate. We in…
-
Lint name:
clippy::redundant_pub_crate
I tried this code:
```rust
mod foo {
pub(crate) struct Bar;
}
pub use foo::*;
```
I expected to see this happen:
`cargo clippy -- -W clip…
-
### Problem you are trying to solve
The official Rust Docker images do not contain clippy and rustfmt. This has been the [source](https://github.com/rust-lang/docker-rust/issues/16) of [several](http…
-
### Summary
Some warnings are not reported when clippy is executed without the `rust-src` component installed. The same warnings are reported normally when the component is installed.
The issue …
-
This umbrella issue is around finding potential `#[deny]` lints we could add to the apollo router, and auditing and updating the code so it keeps adhering to best rust practices.
- [ ] #3774 to expan…
-
### Summary
Clippy wrongly identifies a closure as redundant when higher-ranked lifetimes are involved.
### Lint Name
redundant_closure_for_method_calls
### Reproducer
I tried this code…
-
Code:
```rust
pub fn f() {
let v = &mut &mut Vec::::new();
debug_assert!(v.is_empty()); //~ ERROR do not call a function with mutable arguments inside of `debug_assert!`
}
```
Err…
-
With `async/await` coming up, we will probably see an uptake of such code:
```
async hello() {
println!("hello").
}
```
Users will most likely not be aware that the call to `println`…
skade updated
5 months ago
-
### What it does
Generic functions already allow cross-crate inlining, so clippy should warn about marking one of these functions with #[inline]`.
### Lint Name
unnecessary_inline
### Category
st…