More `mem::take` in `library` A bunch of places were using `replace(…, &mut [])`, but that can just be `take`.
mem::take
library