Skip to content

chore: replace unmaintained name-variant crate#64

Open
tstenner wants to merge 1 commit into
koskev:mainfrom
tstenner:feature/no-more-name-variant
Open

chore: replace unmaintained name-variant crate#64
tstenner wants to merge 1 commit into
koskev:mainfrom
tstenner:feature/no-more-name-variant

Conversation

@tstenner

@tstenner tstenner commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

}

/// Gets the variant name
pub fn variant_name(&self) -> &'static str {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of manually implementing that, we should probably just replace NamedVariant with EnumString.

($name: ident, $lsp_type: ty, $($item: expr),*) => {
paste::paste! {
#[derive(Default, Debug, EnumIter, EnumDiscriminants, NamedVariant, Clone)]
#[derive(Default, Debug, EnumIter, EnumDiscriminants, Clone)]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants