Repository navigation
Add RefCell::take - #71398
Add RefCell::take#71398
RefCell::take#71398Conversation
85ad89d to
0fb7907
Compare
|
I don't think we should have the |
0fb7907 to
1cc028f
Compare
|
I removed the inline attributes :) |
|
☔ The latest upstream changes (presumably #71439) made this pull request unmergeable. Please resolve the merge conflicts. |
In the same vein as `Cell::take` and `Option::take`.
1cc028f to
4ea83bf
Compare
LukasKalbertodt
left a comment
There was a problem hiding this comment.
Thanks for your PR and please excuse my late response. Looks like a useful addition! Just one inline comment.
As this is a tiny feature, I think the doc example is sufficient as test. The PR adding Cell::take (#39287) also didn't add any tests.
|
No worries, thanks for the review! I copied the docs from |
|
@bors r+ |
|
📌 Commit 4a79424 has been approved by |
…asKalbertodt Add `RefCell::take` Add `RefCell::take` to match `Cell` and `Option`. I also changed a couple of calls to `.replace` to `.take`. Tracking issue is rust-lang#71395. This is my first contribution, please tell me if there's anything I could improve, thanks!
commented
May 3, 2020
|
⌛ Testing commit 4a79424 with merge bba798dd3eaf4c68b9f1ef3cb223dbacf9f764c1... |
commented
May 3, 2020
|
included in rollup, yielding @bors retry |
commented
May 3, 2020
|
☔ The latest upstream changes (presumably #71853) made this pull request unmergeable. Please resolve the merge conflicts. |
Add
RefCell::taketo matchCellandOption.I also changed a couple of calls to
.replaceto.take.Tracking issue is #71395.
This is my first contribution, please tell me if there's anything I could improve, thanks!