next.js
97958668 - Fix future Rust warnings (#81217)

Commit
178 days ago
Fix future Rust warnings (#81217) I tried to upgrade to nightly-2025-07-02, but rust-analyzer is just completely broken: ![Bildschirmfoto 2025-07-03 um 08.52.48.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sjZSbv6AFeuDg7Gb9rma/56c6fece-893c-41fb-98e6-fa225b325225.png) So I reverted that again but here are all fixes to the new compiler warnings: ``` warning: lifetime flowing from input to output with different syntax can be confusing --> turbopack/crates/turbo-tasks/src/read_ref.rs:89:27 | 89 | fn value_debug_format(&self, depth: usize) -> ValueDebugFormatString { | ^^^^^ ---------------------- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 89 | fn value_debug_format(&self, depth: usize) -> ValueDebugFormatString<'_> { | ++++ ```
Author
Parents
Loading