Use strum to facilitate simple enum serialization (#367)

This commit is contained in:
Charlie Marsh 2022-10-08 17:47:25 -04:00 committed by GitHub
parent 54090bd7ac
commit 2bba643dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 134 additions and 338 deletions

View file

@ -16,8 +16,8 @@ fn main() {
let fix_token = if check_kind.fixable() { "🛠" } else { "" };
println!(
"| {} | {} | {} | {} | {} |",
check_kind.code().as_str(),
check_kind.name(),
check_kind.code().as_ref(),
check_kind.as_ref(),
check_kind.body(),
default_token,
fix_token