tenebrous-dicebot/dicebot
projectmoon ee3ec18e06 Refactor keep-drop parsing into function, better error handling. (#93)
This commit refactors the keep-drop parsing into two separate
functions: one for extracting keep-drop text, and one for actually
doing something with the extracted values. An intermediate enum is
introduced to contain extracted text, instead of relying on Ok/Err
values directly for figuring out what to do with the values.

This allows us to express "this behavior is correct, and all others
are not" instead of using a "fall back to secondary functionality"
approach.

Reviewed-on: projectmoon/tenebrous-dicebot#93
Co-Authored-By: projectmoon <projectmoon@noreply.git.agnos.is>
Co-Committed-By: projectmoon <projectmoon@noreply.git.agnos.is>
2021-09-30 21:16:00 +00:00
..
src Refactor keep-drop parsing into function, better error handling. (#93) 2021-09-30 21:16:00 +00:00
Cargo.toml Version 0.13.1 2021-09-06 22:21:24 +00:00
Dockerfile Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
sqlx-data.json Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00