build(toolchain),ci: switch to rust 1.82-beta for now

`precise_capturing` has no workaround but we need it in tests. The main
crate should still compile under stable rustc, which is enforced by CI.
This commit is contained in:
oxalica 2024-09-10 06:22:56 -04:00
parent 7160e5adbd
commit 199985c6a2
8 changed files with 88 additions and 34 deletions

View file

@ -119,6 +119,10 @@ type RE<T> = R<T, ApiError>;
async fn handle_ws(State(st): ArcState, ws: WebSocketUpgrade) -> Response {
ws.on_upgrade(move |mut socket| async move {
match event::handle_ws(st, &mut socket).await {
#[allow(
unreachable_patterns,
reason = "compatibility before min_exhaustive_patterns"
)]
Ok(never) => match never {},
Err(err) if err.is::<event::StreamEnded>() => {}
Err(err) => {