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 | 1af85ad50523427384234313fe00aa8bfa89135f (patch) | |
tree | 129af98f7e3e352a6d230b3a0e0c8aa429429c37 /libc/ci/docker/mips-unknown-linux-gnu | |
parent | 4d779638826bee5e4ee5c7ea2ed2fc8d0d7275be (diff) | |
download | nitrocli-1af85ad50523427384234313fe00aa8bfa89135f.tar.gz nitrocli-1af85ad50523427384234313fe00aa8bfa89135f.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 'libc/ci/docker/mips-unknown-linux-gnu')
0 files changed, 0 insertions, 0 deletions