Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32276679
D3920.1765261702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D3920.1765261702.diff
View Options
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<Box<dyn Stream<Item = Result<RegistrationResponse, Status>> + Send + 'static>>;
+ type RegisterUserStream = Pin<
+ Box<
+ dyn Stream<Item = Result<RegistrationResponse, Status>> + Send + 'static,
+ >,
+ >;
async fn register_user(
&self,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 9, 6:28 AM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5853045
Default Alt Text
D3920.1765261702.diff (2 KB)
Attached To
Mode
D3920: [Identity] Set max width to 80 characters
Attached
Detach File
Event Timeline
Log In to Comment