Open
Description
openedon Oct 16, 2024
Problem
Two suggestions all making changes to the same span have the potential to cause a syntax error.
Steps
cargo new --lib test-crate
- Write the following code into
src/lib.rs
:
struct Foo(i64);
impl Into<i64> for Foo {
fn into(self) -> i64 {
self.0.clone()
}
}`
cargo clippy --fix
Possible Solution(s)
Making sure that a spans don't overlap each other when having made a suggestion. See more context in the linked issue
Notes
No response
Version
cargo version --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment