summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRory Dudley2024-02-28 22:00:26 -0700
committerRory Dudley2024-02-28 22:00:26 -0700
commitb8db4a0cda9eb080c9e89c635be4c9abfc9f88d6 (patch)
tree06337724ea2f7d056b5e6aa676579bf37a99b62a /src/main.rs
parent2d2d5af3553b732237937549dc9b6df28b7c00cb (diff)
downloaddwarvish-b8db4a0cda9eb080c9e89c635be4c9abfc9f88d6.tar.gz
Refactor status variables in Poem::read()
Moved the 'couplet' and 'metered' variables into functions impl'd for Verse. This cuts down on the boilerplate in the parsing loop, and also makes it so that their match statements are only ran when needed, rather than being called at every iteration of the loop.
Diffstat (limited to 'src/main.rs')
0 files changed, 0 insertions, 0 deletions