-
Hi, fn main() {
println!("Hello, world!");
let buf = vec![1, 2, 3, 4];
for item in buf {
match item {
_ => return,
}
}
} Obviously it's not a good code but it's compiling isn't it a warning not an error. I'm using neovim via rustacianvim which uses rust-analyzer on my system. |
Beta Was this translation helpful? Give feedback.
Answered by
lnicola
Feb 4, 2025
Replies: 1 comment 1 reply
-
You've configured rust-analyzer to run
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lnicola
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You've configured rust-analyzer to run
cargo clippy
instead ofcargo check
. If you try it yourself (in the terminal), you'll get the same error: