tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
25.44k stars 2.3k forks source link

rt: modify the type bound of LinkedList when call into_guarded #6630

Closed wathenjiang closed 3 weeks ago

wathenjiang commented 3 weeks ago

To modify the restrictions on the generic L in LinkedList when call into_guarded.

I believe that it can help to be less restrictive on the type of Handle when turning a linked list into a guarded linked list.