summaryrefslogtreecommitdiff
path: root/libc/src/unix/hermit/mod.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-09 15:15:55 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-09 15:15:55 -0800
commit886788a95a3c79a7664cbcd0bfffa1e500461adf (patch)
tree35b5f3704e27c185bd71c7b18f59da57415ec651 /libc/src/unix/hermit/mod.rs
parentac7025cbe1bc46d25dd978138c6b397d77853232 (diff)
downloadnitrocli-886788a95a3c79a7664cbcd0bfffa1e500461adf.tar.gz
nitrocli-886788a95a3c79a7664cbcd0bfffa1e500461adf.tar.bz2
Simplify try_with_pin_and_data function
The try_with_pin_and_data function is a fairly complex beast. Part of that complexity stems from the returned Result value, whose error part not only contains the error but also the previously passed in data. As it turns out, though, this data as returned is never actually consumed by any client. Hence, this change simplifies the logic slightly by removing all the additional complexity that this tuple return entailed.
Diffstat (limited to 'libc/src/unix/hermit/mod.rs')
0 files changed, 0 insertions, 0 deletions