]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #55472 - ljedrz:use_option_take, r=cramertj
authorkennytm <kennytm@gmail.com>
Tue, 30 Oct 2018 10:55:29 +0000 (18:55 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 10:55:29 +0000 (18:55 +0800)
Use opt.take() instead of mem::replace(opt, None)

It's easier to read.


Trivial merge