From 9c9c513419b593ee23a8f4933a30a04a91761356 Mon Sep 17 00:00:00 2001 From: rays Date: Thu, 19 Nov 2026 07:30:49 -0500 Subject: [PATCH] The media handler's impossible error is matched as one (#479) rustc 1.100 knows serving a file cannot fail (the error is Infallible) and called e.to_string() an unreachable call, which -D warnings made the pre-commit hook refuse for every commit touching ipx's Rust. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy --- crates/ipx/src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ipx/src/web.rs b/crates/ipx/src/web.rs index d50e4bb..ce83eb8 100644 --- a/crates/ipx/src/web.rs +++ b/crates/ipx/src/web.rs @@ -2805,7 +2805,7 @@ async fn serve_media(state: WebState, id: i64, user: crate::db::User, req: Reque } r.into_response() } - Err(e) => (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()).into_response(), + Err(e) => match e {}, } }