mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Use strum to facilitate simple enum serialization (#367)
This commit is contained in:
parent
54090bd7ac
commit
2bba643dd2
6 changed files with 134 additions and 338 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue