aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-27 13:38:16 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-27 13:38:16 +0000
commite311ee31b819092a119fa24930ab5777d3c4fd71 (patch)
tree763597f9ca83c0cfdfa32cb402de0be870c9cff2 /src
parent33a65c1635e54ae51089ef3c37a749d67853be02 (diff)
downloadnitrokey-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.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 18c86e2..f2d524e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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.
///