diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-27 13:38:16 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-27 13:38:16 +0000 |
commit | e311ee31b819092a119fa24930ab5777d3c4fd71 (patch) | |
tree | 763597f9ca83c0cfdfa32cb402de0be870c9cff2 | |
parent | 33a65c1635e54ae51089ef3c37a749d67853be02 (diff) | |
download | nitrokey-rs-e311ee31b819092a119fa24930ab5777d3c4fd71.tar.gz nitrokey-rs-e311ee31b819092a119fa24930ab5777d3c4fd71.tar.bz2 |
Remove the static lifetime modifier from constants
The DEFAULT_{ADMIN,USER}_PIN constants implicitly have static lifetime.
Therefore we can remove the static lifetime modifiers.
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -113,9 +113,9 @@ pub use crate::pws::{GetPasswordSafe, PasswordSafe, SLOT_COUNT}; pub use crate::util::LogLevel; /// The default admin PIN for all Nitrokey devices. -pub const DEFAULT_ADMIN_PIN: &'static str = "12345678"; +pub const DEFAULT_ADMIN_PIN: &str = "12345678"; /// The default user PIN for all Nitrokey devices. -pub const DEFAULT_USER_PIN: &'static str = "123456"; +pub const DEFAULT_USER_PIN: &str = "123456"; /// A version of the libnitrokey library. /// |