aboutsummaryrefslogtreecommitdiff
path: root/srp/src
diff options
context:
space:
mode:
Diffstat (limited to 'srp/src')
-rw-r--r--srp/src/groups.rs1
-rw-r--r--srp/src/lib.rs8
-rw-r--r--srp/src/server.rs2
-rw-r--r--srp/src/types.rs2
4 files changed, 3 insertions, 10 deletions
diff --git a/srp/src/groups.rs b/srp/src/groups.rs
index 3438c42..d5c5fb9 100644
--- a/srp/src/groups.rs
+++ b/srp/src/groups.rs
@@ -4,6 +4,7 @@
//! groups. Additionally it is not recommended to use `G_1024` and `G_1536`,
//! they are provided only for compatibility with the legacy software.
use crate::types::SrpGroup;
+use lazy_static::lazy_static;
use num::BigUint;
lazy_static! {
diff --git a/srp/src/lib.rs b/srp/src/lib.rs
index 1467496..d05cfa8 100644
--- a/srp/src/lib.rs
+++ b/srp/src/lib.rs
@@ -64,14 +64,6 @@
//! [1]: https://en.wikipedia.org/wiki/Secure_Remote_Password_protocol
//! [2]: https://tools.ietf.org/html/rfc5054
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
-extern crate digest;
-extern crate generic_array;
-extern crate num;
-#[macro_use]
-extern crate lazy_static;
-
-#[cfg(test)]
-extern crate sha1;
pub mod client;
pub mod groups;
diff --git a/srp/src/server.rs b/srp/src/server.rs
index 3946949..a4764d3 100644
--- a/srp/src/server.rs
+++ b/srp/src/server.rs
@@ -65,7 +65,7 @@ pub struct SrpServer<D: Digest> {
impl<D: Digest> SrpServer<D> {
/// Create new server state.
pub fn new(
- user: &UserRecord,
+ user: &UserRecord<'_>,
a_pub: &[u8],
b: &[u8],
params: &SrpGroup,
diff --git a/srp/src/types.rs b/srp/src/types.rs
index df5a6e8..6ae8595 100644
--- a/srp/src/types.rs
+++ b/srp/src/types.rs
@@ -11,7 +11,7 @@ pub struct SrpAuthError {
}
impl fmt::Display for SrpAuthError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "SRP authentification error")
}
}