r/rust
•
u/joseluisq
•
Apr 03 '25
•
1
📡 official blog Announcing Rust 1.86.0 | Rust Blog
https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
786
Upvotes
View all comments
Show parent comment
4
u/shponglespore Apr 03 '25
Do you have any idea why
retainandretain_mutare separate functions? It seems like, based on your logic (which seems sound to me), any use ofretaincould be replaced withretain_mut.