diff options
Diffstat (limited to 'nitrocli/src/main.rs')
-rw-r--r-- | nitrocli/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nitrocli/src/main.rs b/nitrocli/src/main.rs index ebc0589..67a0a22 100644 --- a/nitrocli/src/main.rs +++ b/nitrocli/src/main.rs @@ -17,8 +17,8 @@ // * along with this program. If not, see <http://www.gnu.org/licenses/>. * // ************************************************************************* - #![deny(missing_docs)] +#![warn(rust_2018_compatibility)] //! Nitrocli is a program providing a command line interface to certain //! commands of the Nitrokey Storage device. @@ -31,13 +31,14 @@ mod error; mod nitrokey; mod pinentry; -use error::Error; use std::mem; use std::process; use std::result; use std::thread; use std::time; +use crate::error::Error; + type Result<T> = result::Result<T, Error>; type NitroFunc = Fn(&mut libhid::Handle) -> Result<()>; |