Skip to content

Hotfix v0.2.2

Latest

Choose a tag to compare

@jngls jngls released this 01 Nov 18:35
· 2 commits to main since this release
096f68a

This release fixes a subtle issue in the following context:

macro_rules! impl_in_macro {
    ($name:ident) => {
        #[derive(SyntaxFmt)]
        struct $name(i32);
    };
}
impl_in_macro!(InMacro);

Which would give error error[E0424]: expected value, found module self on the derive(SyntaxFmt).

The issue was that I was incorrectly using quote_spanned. It only showed its face when wrapped in macros where the hygeine context is different than regular usage.

What's Changed

  • Fixed hygeine context error
  • Minor doc updates
  • Bump version number