Skip to content

Rust-analyzer warnings in #[derive(Properties)] macros #2006

@KarlitosVII

Description

@KarlitosVII

Problem
Hello,
rust-analyzer show a warning in every #[derive(Properties)] macro.

For example with:

#[derive(Properties, Clone, PartialEq)]
pub struct Props {
    pub label: String,
    pub value: String,
}

it will show

Structure `PropsBuilderStep_missing_required_prop_label` should have CamelCase name, e.g.
`PropsBuilderStepMissingRequiredPropLabel` rust-analyzer(incorrect-ident-case)
Structure `PropsBuilderStep_missing_required_prop_value` should have CamelCase name, e.g.
`PropsBuilderStepMissingRequiredPropValue` rust-analyzer(incorrect-ident-case)

Environment:

  • Yew version: git master
  • Rust version: latest stable
  • Build tool: VS Code
  • OS: Windows 10

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions