Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unneeded unit expression #44

Closed
martinthomson opened this issue May 10, 2023 · 0 comments
Closed

unneeded unit expression #44

martinthomson opened this issue May 10, 2023 · 0 comments

Comments

@martinthomson
Copy link

The clippy unused_unit lint is triggered in rust 1.69.0 and later builds.

#[deny(clippy::unused_unit)]
#[derive(enumset::EnumSetType)]
enum Example {
  One,
  Two,
}

The compiler output, even with -Z macro-backtrace isn't particularly helpful here, so I can't help identify the cause (the quoted line seems fine).

874 | pub fn derive_enum_set_type(input: TokenStream) -> TokenStream {
    | -------------------------------------------------------------- in this expansion of `#[derive(EnumSetType)]`
@Lymia Lymia closed this as completed May 10, 2023
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

No branches or pull requests

2 participants