aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-12-27 23:07:56 +0100
committerRobin Krahl <robin.krahl@ireas.org>2019-12-27 23:07:56 +0100
commitc35a20f6c034e4d8aa1eeba3eef85429e09d95dc (patch)
tree03ca7cd05da6c7b8405115e89ae6e7503604f703 /src/auth.rs
parent0bffc7931e011b4c0c046ed7608fbe9b7a1ffd19 (diff)
downloadnitrokey-rs-c35a20f6c034e4d8aa1eeba3eef85429e09d95dc.tar.gz
nitrokey-rs-c35a20f6c034e4d8aa1eeba3eef85429e09d95dc.tar.bz2
Implement std::convert::TryFrom<Config> for RawConfig
Previously, the RawConfig struct had a try_from function. As the TryFrom trait has been stabilized with Rust 1.34.0, we can use it instead.
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 0b000f7..cab1021 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -1,6 +1,7 @@
// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org>
// SPDX-License-Identifier: MIT
+use std::convert::TryFrom as _;
use std::marker;
use std::ops;
use std::os::raw::c_char;