diff --git a/services/identity/rustfmt.toml b/services/identity/rustfmt.toml --- a/services/identity/rustfmt.toml +++ b/services/identity/rustfmt.toml @@ -1 +1,2 @@ tab_spaces = 2 +max_width = 80 diff --git a/services/identity/src/config.rs b/services/identity/src/config.rs --- a/services/identity/src/config.rs +++ b/services/identity/src/config.rs @@ -19,7 +19,9 @@ } } -#[derive(Debug, derive_more::Display, derive_more::From, derive_more::Error)] +#[derive( + Debug, derive_more::Display, derive_more::From, derive_more::Error, +)] pub enum Error { #[display(...)] Pake(PakeError), diff --git a/services/identity/src/opaque.rs b/services/identity/src/opaque.rs --- a/services/identity/src/opaque.rs +++ b/services/identity/src/opaque.rs @@ -1,7 +1,8 @@ use argon2::Argon2; use digest::{generic_array::GenericArray, Digest}; use opaque_ke::{ - ciphersuite::CipherSuite, errors::InternalPakeError, hash::Hash, slow_hash::SlowHash, + ciphersuite::CipherSuite, errors::InternalPakeError, hash::Hash, + slow_hash::SlowHash, }; pub struct Cipher; diff --git a/services/identity/src/service.rs b/services/identity/src/service.rs --- a/services/identity/src/service.rs +++ b/services/identity/src/service.rs @@ -7,8 +7,9 @@ pub use proto::identity_service_server::IdentityServiceServer; use proto::{ - identity_service_server::IdentityService, LoginRequest, LoginResponse, RegistrationRequest, - RegistrationResponse, VerifyUserTokenRequest, VerifyUserTokenResponse, + identity_service_server::IdentityService, LoginRequest, LoginResponse, + RegistrationRequest, RegistrationResponse, VerifyUserTokenRequest, + VerifyUserTokenResponse, }; mod proto { @@ -23,8 +24,11 @@ #[tonic::async_trait] impl IdentityService for MyIdentityService { - type RegisterUserStream = - Pin> + Send + 'static>>; + type RegisterUserStream = Pin< + Box< + dyn Stream> + Send + 'static, + >, + >; async fn register_user( &self,