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

rustfmt::skip is broken by derive(FromRepr) #281

Closed
worldmaker18349276 opened this issue Jul 3, 2023 · 1 comment
Closed

rustfmt::skip is broken by derive(FromRepr) #281

worldmaker18349276 opened this issue Jul 3, 2023 · 1 comment

Comments

@worldmaker18349276
Copy link

use strum_macros::FromRepr;

#[rustfmt::skip]
#[derive(FromRepr)]
pub enum Enum {
    A, B, C,
}


fn main() {
    println!("Hello, world!");
}
   Compiling strum_rustfmtskip_bug v0.1.0 (/home/worldmaker/Documents/playground/strum_rustfmtskip_bug)
error: expected attribute arguments in parentheses: `rustfmt::skip(...)`
 --> src/main.rs:3:3
  |
3 | #[rustfmt::skip]
  |   ^^^^^^^^^^^^^

error: could not compile `strum_rustfmtskip_bug` due to previous error
@Peternator7
Copy link
Owner

Fixed in #276 and the version 0.25.1 that I just published.

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