summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-05 22:21:59 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-05 22:21:59 +0200
commit5b536045bd4276b31edafb55f39ded8534732401 (patch)
treec15bf1fe408960aa272567b1a324aec6f5873f0e
parent95d18c5b06399fa4109de808f70b1048d4494d39 (diff)
downloadnitrokey-rs-5b536045bd4276b31edafb55f39ded8534732401.tar.gz
nitrokey-rs-5b536045bd4276b31edafb55f39ded8534732401.tar.bz2
Add traits for easier error handling to todo list
Implementing Into<CommandError> for (Device, CommandError) might allow a user to use the ? operator on methods like authenticate_user within a method returning a CommandError.
-rw-r--r--TODO.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/TODO.md b/TODO.md
index dea7144..a2b6395 100644
--- a/TODO.md
+++ b/TODO.md
@@ -37,3 +37,4 @@
- More specific error checking in the tests.
- Differentiate empty strings and errors (see `result_from_string`).
- Check integer conversions.
+- Consider implementing `Into<CommandError>` for `(Device, CommandError)`