You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
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.
Yeah, looks like I lost that argument five years ago. No reason to keep this open then, until the day I have the time and energy arguing with programming language maintainers. 😕
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):
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
)relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_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.The text was updated successfully, but these errors were encountered: