Description
The analyzer incorrectly suggest that I shoulod use "CamelCase" for the variants in my Enum. I already use camel case, just not the same variant of camel case as Rust expects. Since the term camel case is not clear about the initial letter, it would be better to use a more well defined term such as "PascalCase" or "UpperCamelCase".
Camel case on Wikipedia (bold emphasis is mine):
The format indicates the first word starting with either case, then the following words having an initial uppercase letter.
[…]
The more specific terms Pascal case and upper camel case refer to a joined phrase where the first letter of each word is capitalized, including the initial letter of the first word.
See also this table of examples of letter case on Wikipedia.
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
Mason reports rust-analyzer
2023-08-07.
rustc version: (eg. output of rustc -V
)
$ rustc -V 1 ↵
rustc 1.71.1 (eb26296b5 2023-08-03)
relevant settings: (eg. client settings, or environment variables like CARGO
, RUSTC
, RUSTUP_HOME
or CARGO_HOME
)
Not sure, nothing I've set explicitly at least. I run NeoVim with rust-lang/rust.vim and rust_analyzer
for lspconfig installed via Mason.