diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:28:46 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:28:46 +0100 |
commit | ec9c03c0a21f9220b44f85a4734feca532b89e43 (patch) | |
tree | 8f1dae3e513e3ec2c51f9003b2e39f46f4691f3e /src/util.rs | |
parent | 2452d3e9e5c8570d1e04934a80e808ea4755ee36 (diff) | |
download | nitrokey-rs-ec9c03c0a21f9220b44f85a4734feca532b89e43.tar.gz nitrokey-rs-ec9c03c0a21f9220b44f85a4734feca532b89e43.tar.bz2 |
Make hidden life time parameters explicit
This patch makes hidden life time parameters explicit to fix
elided-lifetime-in-path compiler warnings.
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs index 6f4fbb0..2a75634 100644 --- a/src/util.rs +++ b/src/util.rs @@ -115,7 +115,7 @@ pub fn get_cstring<T: Into<Vec<u8>>>(s: T) -> Result<CString, CommandError> { } impl fmt::Display for CommandError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let msg = match *self { CommandError::WrongCrc => "A packet with a wrong checksum has been sent or received", CommandError::WrongSlot => "The given OTP slot does not exist", |