tenebrous-dicebot/dicebot/src
projectmoon ee3ec18e06
continuous-integration/drone/push Build is passing Details
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: #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
..
basic Refactor keep-drop parsing into function, better error handling. (#93) 2021-09-30 21:16:00 +00:00
bin Remove example room ID from tonic_client 2021-09-05 20:38:45 +00:00
bot Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
cofd Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
commands Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
cthulhu Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
db Update sqlx and refinery to newer versions (#88) 2021-09-05 07:56:41 +00:00
parser Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
rpc Revert "Initial prototype of web UI and web API." 2021-09-03 09:29:52 +00:00
config.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
context.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
error.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
help.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
lib.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
logic.rs Update sqlx and refinery to newer versions (#88) 2021-09-05 07:56:41 +00:00
matrix.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
models.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
state.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00