diff options
author | Daniel Mueller <deso@posteo.net> | 2020-09-29 20:31:50 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-09-29 20:31:50 -0700 |
commit | 1229dd36306ac43480fcf2bfb91aa47d41ea5e77 (patch) | |
tree | 7539a02e3c292358b541d762955e79c81ff23716 /Cargo.toml | |
parent | e5149d8a783fc8e397e91415c2e56901f7368349 (diff) | |
download | nitrocli-1229dd36306ac43480fcf2bfb91aa47d41ea5e77.tar.gz nitrocli-1229dd36306ac43480fcf2bfb91aa47d41ea5e77.tar.bz2 |
Shorten some error handling paths
When we originally switched over to using anyhow for error handling, we
evidently missed to take advantage of its context support in a couple of
error paths. The result was that we ended up with rather long winded
> result.ok_or_else(|| anyhow::anyhow!(...))
constructs.
This change shortens them, making use of the anyhow::Context trait.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions