summaryrefslogtreecommitdiff
path: root/src/hashable.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-07-24 19:47:07 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-07-24 19:47:07 -0400
commit3fbc6b94c7e4cad06902d01d5b14694d23fa71c9 (patch)
tree17fac79a5dc606e27c640b23172e9e0af3206f1d /src/hashable.rs
parentf2d288fd5d1054075374f3f7229f8a9332adf61c (diff)
Legibility improvements to main.
The explicit panic is a conscious decision; clap doesn't have a better way to represent mutually-exclusive options, so we have to use two boolean fields, but it will actually prevent the user from passing both options and triggering that code path. Since it's one of the rare situations where design choices converge on a truly unreachable case, I thought I'd make it easier to discover when I'm wrong and it is actually reachable. The old logic treated (true, true) like (false, false).
Diffstat (limited to 'src/hashable.rs')
0 files changed, 0 insertions, 0 deletions