style: format seluruh workspace dengan cargo fmt

Menyeragamkan format kode sesuai rustfmt (126 file). Sebelumnya
lefthook pre-commit 'cargo fmt --check' akan gagal pada commit apa pun.
This commit is contained in:
asepharyana
2026-08-27 22:10:28 +07:00
parent 884b19ccb5
commit 7b0b53671f
127 changed files with 1271 additions and 1156 deletions
+2 -5
View File
@@ -100,8 +100,7 @@ where
Ok(claims) => {
// Reject refresh tokens on protected routes — only access
// tokens are acceptable here.
if claims.token_type
!= zesdex_infrastructure::auth::jwt::TokenType::Access
if claims.token_type != zesdex_infrastructure::auth::jwt::TokenType::Access
{
let response = (
StatusCode::UNAUTHORIZED,
@@ -115,9 +114,7 @@ where
}
// Inject claims as extension for downstream handlers
let mut req = req;
req.extensions_mut().insert(JwtClaims {
sub: claims.sub,
});
req.extensions_mut().insert(JwtClaims { sub: claims.sub });
let fut = self.inner.call(req);
return Box::pin(fut);
}