mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(rust): silence result_large_err on axum response error paths (#1799)
This commit is contained in:
@@ -112,6 +112,7 @@ fn is_urlencoded_form(request: &Request) -> bool {
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
async fn extract_csrf_from_form_body(
|
||||
request: Request,
|
||||
) -> Result<(Request, Option<String>), Response> {
|
||||
|
||||
@@ -231,6 +231,7 @@ fn discovery_endpoint(discovery: &DiscoveryResponse, key: &str) -> Option<String
|
||||
.map(ToOwned::to_owned)
|
||||
}
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
async fn load_spa_index_html(state: &AppState) -> Result<String, Response> {
|
||||
if let Some(index_upstream_url) = &state.config.index_upstream_url {
|
||||
let response = state
|
||||
|
||||
@@ -335,6 +335,7 @@ fn replace_image_extension(filename: &str, ext: AssetExtension) -> String {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
async fn rasterize_metadata_svg(
|
||||
app: &Arc<AppState>,
|
||||
input: InputData,
|
||||
|
||||
Reference in New Issue
Block a user