Skip to content

Commit 087d070

Browse files
authored
Merge pull request #9680 from rust-lang/renovate/rust-1.x
Update Rust to v1.82.0
2 parents ac7b0c0 + 6bb0a58 commit 087d070

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust
2-
ARG RUST_VERSION=1.81.0
2+
ARG RUST_VERSION=1.82.0
33

44
FROM rust:$RUST_VERSION
55

crates/crates_io_worker/src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use anyhow::anyhow;
22
use sentry_core::Hub;
33
use std::any::Any;
44
use std::future::Future;
5-
use std::panic::PanicInfo;
5+
use std::panic::PanicHookInfo;
66

77
pub async fn with_sentry_transaction<F, R, E, Fut>(
88
transaction_name: &str,
@@ -34,11 +34,11 @@ where
3434
/// Try to figure out what's in the box, and print it if we can.
3535
///
3636
/// The actual error type we will get from `panic::catch_unwind` is really poorly documented.
37-
/// However, the `panic::set_hook` functions deal with a `PanicInfo` type, and its payload is
37+
/// However, the `panic::set_hook` functions deal with a `PanicHookInfo` type, and its payload is
3838
/// documented as "commonly but not always `&'static str` or `String`". So we can try all of those,
3939
/// and give up if we didn't get one of those three types.
4040
pub fn try_to_extract_panic_info(info: &(dyn Any + Send + 'static)) -> anyhow::Error {
41-
if let Some(x) = info.downcast_ref::<PanicInfo<'_>>() {
41+
if let Some(x) = info.downcast_ref::<PanicHookInfo<'_>>() {
4242
anyhow!("job panicked: {x}")
4343
} else if let Some(x) = info.downcast_ref::<&'static str>() {
4444
anyhow!("job panicked: {x}")

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.81.0"
2+
channel = "1.82.0"

src/middleware/static_or_continue.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ async fn serve<P: AsRef<Path>>(path: P, request: Request, next: Next) -> Respons
2525
*static_req.headers_mut() = request.headers().clone();
2626

2727
let serve_dir = ServeDir::new(path).precompressed_br().precompressed_gzip();
28-
if let Ok(response) = serve_dir.oneshot(static_req).await {
29-
if response.status() != StatusCode::NOT_FOUND {
30-
return response.map(axum::body::Body::new);
31-
}
28+
let Ok(response) = serve_dir.oneshot(static_req).await;
29+
if response.status() != StatusCode::NOT_FOUND {
30+
return response.map(axum::body::Body::new);
3231
}
3332
}
3433

0 commit comments

Comments
 (0)