Peternator7 / strum

A small rust library for adding custom derives to enums
https://crates.io/crates/strum
MIT License
1.81k stars 152 forks source link

fix deprecation warning in additional_attributes example #264

Closed rsnively closed 1 year ago

rsnively commented 1 year ago

The example code in additional_attributes brings up a deprecation warning related to issue #132 .

This change updates the example code to use strum_macros::Display instead of strum_macros::ToString (as well as removing some unneeded use statements).

Current example code with warning: example_deprecation_warning

Fixed: fixed

rsnively commented 1 year ago

I think this was supposed to make it in with commit #180 but accidentally got overwritten in commit #182

Peternator7 commented 1 year ago

thanks!