rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.82k stars 263 forks source link

borrow-splitting: Use `take` instead of `replace` #391

Closed xy2i closed 1 year ago

xy2i commented 1 year ago

Clippy complains with this lint on the old code: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default