Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Clippy fails for single variant enum with Derive #11

Closed
norcalli opened this issue May 30, 2022 · 1 comment
Closed

Clippy fails for single variant enum with Derive #11

norcalli opened this issue May 30, 2022 · 1 comment

Comments

@norcalli
Copy link

error: any number modulo 1 will be 0
  --> some_filename.rs:13:10
   |
13 | #[derive(enum_map::Enum, Debug, Copy, Clone)]
#[derive(enum_map::Enum)]
pub enum Side {
    Bottom,
}

I'm not entirely sure what to do about it, just putting it here anyway.

@KamilaBorowska
Copy link
Owner

KamilaBorowska commented May 30, 2022

This seems to be another instance of Clippy not being able to recognize that a given code is in a procedural macro. This may be fixed by rust-lang/rust-clippy#8694.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants