style: cargo fmt across audit-2026-06-11 tier-3 changes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -182,7 +182,9 @@ pub fn email_inbound_router(state: EmailInboundState) -> Router {
|
||||
"/email-inbound/{app_id}/{trigger_id}",
|
||||
post(receive_inbound_email),
|
||||
)
|
||||
.layer(axum::extract::DefaultBodyLimit::max(INBOUND_BODY_LIMIT_BYTES))
|
||||
.layer(axum::extract::DefaultBodyLimit::max(
|
||||
INBOUND_BODY_LIMIT_BYTES,
|
||||
))
|
||||
.with_state(state)
|
||||
}
|
||||
|
||||
|
||||
@@ -93,8 +93,7 @@ async fn list_files(
|
||||
// traversal-shaped collection would otherwise only be caught by the
|
||||
// repo's `guard_collection` as an opaque 500. Validate here for a
|
||||
// clean 422 and as the outer layer of the belt-and-suspenders guard.
|
||||
validate_files_collection(&q.collection)
|
||||
.map_err(|e| FilesApiError::Invalid(e.to_string()))?;
|
||||
validate_files_collection(&q.collection).map_err(|e| FilesApiError::Invalid(e.to_string()))?;
|
||||
let page = s
|
||||
.files
|
||||
.list(
|
||||
|
||||
@@ -503,8 +503,7 @@ pub async fn build_app(
|
||||
// revocation, so an evict on the revocation side is visible to the
|
||||
// middleware's resolve side. A per-state cache would let a revoked
|
||||
// principal keep authenticating from the middleware's own copy.
|
||||
let principal_cache =
|
||||
Arc::new(picloud_manager_core::auth_middleware::PrincipalCache::new());
|
||||
let principal_cache = Arc::new(picloud_manager_core::auth_middleware::PrincipalCache::new());
|
||||
let auth_state = AuthState {
|
||||
users: auth.users.clone(),
|
||||
sessions: auth.sessions.clone(),
|
||||
|
||||
Reference in New Issue
Block a user