frozenlib / parse-display

Procedural macro to implement Display and FromStr using common settings.
Apache License 2.0
182 stars 14 forks source link

use `Self` instead of enum_variant #22

Closed hellow554 closed 2 years ago

hellow554 commented 2 years ago

Without this the following warning would occur:

warning: unnecessary structure name repetition
 --> src/main.rs:7:6
  |
7 | enum Foo {
  |      ^^^ help: use the applicable keyword: `Self`
  |

and no clue on why this happens.

frozenlib commented 2 years ago

Thanks!

hellow554 commented 2 years ago

Would you mind creating 0.5.4 which includes this PR? There hasn't much changed since 0.5.3 which makes it easier to justify a patch release.

frozenlib commented 2 years ago

I have now released version 0.5.4, which includes this fix.