Repository: RustPython/RustPython (language: rust)

Issue:
clippy error on `rustpython_wasm`
## Summary
could not compile rustpython_wasm due to type deprecation error

## Expected
pass lint written in github action

## Actual
```bash
> git clone https://github.com/RustPython/RustPython.git
> cd RustPython
> rustup component add rustfmt clippy
info: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is up to date
info: component 'clippy' for target 'x86_64-unknown-linux-gnu' is up to date
> cargo fmt --check 
> cargo clippy --manifest-path=wasm/lib/Cargo.toml -- -D warnings
    Checking rustpython_wasm v0.4.0 (/home/mschoi/toy/RustPython/wasm/lib)
error: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
  --> wasm/lib/src/lib.rs:17:33
   |
17 | pub fn panic_hook(info: &panic::PanicInfo) {
   |                                 ^^^^^^^^^
   |
   = note: `-D deprecated` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(deprecated)]`

error: could not compile `rustpython_wasm` (lib) due to 1 previous error
```

Environment
- rustc 1.82.0 (f6e511eec 2024-10-15)
- Linux 5.15.0-124-generic
- Ubuntu 22.04.5 LTS





Discussion / hints:
Thank you for the report. I fixed the title because clippy warnings doesn't prevent actual project build.


Fix patch:
diff --git a/wasm/lib/src/lib.rs b/wasm/lib/src/lib.rs
index 85546c78d3..a5f1a5895a 100644
--- a/wasm/lib/src/lib.rs
+++ b/wasm/lib/src/lib.rs
@@ -14,7 +14,7 @@ pub(crate) use vm_class::weak_vm;
 use wasm_bindgen::prelude::*;
 
 /// Sets error info on the window object, and prints the backtrace to console
-pub fn panic_hook(info: &panic::PanicInfo) {
+pub fn panic_hook(info: &panic::PanicHookInfo) {
     // If something errors, just ignore it; we don't want to panic in the panic hook
     let try_set_info = || {
         let msg = &info.to_string();


Test patch: