diff --git a/src/applications/authentication_app.rs b/src/applications/authentication_app.rs index 6b973e9..a747ab7 100644 --- a/src/applications/authentication_app.rs +++ b/src/applications/authentication_app.rs @@ -20,7 +20,7 @@ pub enum AuthenticationAppError { NotAuthenticatedError, } -pub const AuthenticationCapability : Capability = Capability("AuthenticationCapability"); +pub const AUTHENTICATION_CAPABILITY: Capability = Capability("AuthenticationCapability"); struct AuthenticationSession { long_term_identity: Arc, @@ -37,7 +37,7 @@ struct AuthenticationSession { } impl AuthenticationSession where Direction:Clone { - pub fn new_outbound(mut conn: Connection, long_term_identity: Arc) -> AuthenticationSession { + pub fn new_outbound(conn: Connection, long_term_identity: Arc) -> AuthenticationSession { let ephemeral_identity = Identity::initialize_ephemeral_identity(); let mut auth_session = AuthenticationSession { long_term_identity, @@ -53,7 +53,7 @@ impl AuthenticationSession where Direction:Clone { auth_session } - pub fn new_inbound(mut conn: Connection, long_term_identity: Arc) -> AuthenticationSession { + pub fn new_inbound(conn: Connection, long_term_identity: Arc) -> AuthenticationSession { let ephemeral_identity = Identity::initialize_ephemeral_identity(); let mut auth_session = AuthenticationSession { long_term_identity, @@ -112,7 +112,7 @@ impl AuthenticationSession where Direction:Clone { self.conn.shutdown(); Err(NotAuthenticatedError) } - Err(err) => Err(NotAuthenticatedError), + Err(_err) => Err(NotAuthenticatedError), } } }