Skip to content

use strum_macros::Display for Token - #666

Open
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:simplify-display-of-token
Open

use strum_macros::Display for Token#666
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:simplify-display-of-token

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

ok I forgot that you also need to reuse str in the display-string, so this makes it a bit longer than I thought it would be.

still, that's a 9 line improvement, and it keeps the logic closer by having it directly next to each variant, instead of an extra function.

in my book, this is still worth doing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant