fix(rust): silence result_large_err on axum response error paths (#1799)

This commit is contained in:
Hampus
2026-08-20 21:18:18 +02:00
committed by GitHub
parent 27c7b2722d
commit 3527dc95a2
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -112,6 +112,7 @@ fn is_urlencoded_form(request: &Request) -> bool {
}) })
} }
#[allow(clippy::result_large_err)]
async fn extract_csrf_from_form_body( async fn extract_csrf_from_form_body(
request: Request, request: Request,
) -> Result<(Request, Option<String>), Response> { ) -> Result<(Request, Option<String>), Response> {
+1
View File
@@ -231,6 +231,7 @@ fn discovery_endpoint(discovery: &DiscoveryResponse, key: &str) -> Option<String
.map(ToOwned::to_owned) .map(ToOwned::to_owned)
} }
#[allow(clippy::result_large_err)]
async fn load_spa_index_html(state: &AppState) -> Result<String, Response> { async fn load_spa_index_html(state: &AppState) -> Result<String, Response> {
if let Some(index_upstream_url) = &state.config.index_upstream_url { if let Some(index_upstream_url) = &state.config.index_upstream_url {
let response = state let response = state
+1
View File
@@ -335,6 +335,7 @@ fn replace_image_extension(filename: &str, ext: AssetExtension) -> String {
} }
} }
#[allow(clippy::result_large_err)]
async fn rasterize_metadata_svg( async fn rasterize_metadata_svg(
app: &Arc<AppState>, app: &Arc<AppState>,
input: InputData, input: InputData,