mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 01:40:02 +00:00
[rustc_data_structures] Simplify SortedMap::insert. It looks like current usage of `swap` is aimed at achieving what `std::mem::replace` does but more concisely and idiomatically.