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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
This commit is contained in:
@@ -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 {},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user