cholcombe973 / block-utils

Rust utilities for working with block devices
MIT License
22 stars 17 forks source link

A lot of boilerplate can be avoided with strum crate #26

Closed Apostoln closed 3 years ago

Apostoln commented 3 years ago

There are a lot of boilerplate code in the repo about converting enums to/from strings which can be avoided with strum crate.

I'm going to refactor it in the near future if you have no objections.

cholcombe973 commented 3 years ago

Go for it. Deleted code is code that doesn’t need to be maintained 😁

On Tue, Mar 23, 2021 at 11:22 AM N.B. @.***> wrote:

There are a lot of boilerplate code in the repo about converting enums to/from strings which can be avoided with strum https://crates.io/crates/strum crate.

I'm going to refactor it in the near future if you have no objections.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cholcombe973/block-utils/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXKUE3LGP3DHJ6VZSAOYRLTFDL77ANCNFSM4ZVXEA4A .