diff options
author | David LeGare <legare@google.com> | 2022-03-02 16:21:12 +0000 |
---|---|---|
committer | David LeGare <legare@google.com> | 2022-03-02 16:21:12 +0000 |
commit | 8915193b0de5f14b58aea0cd7bd72a6083529dc2 (patch) | |
tree | 80c46c7f97eb0158db00b2c4710dd54073c36733 /examples | |
parent | dd72f94a2923223417a1d62cfd1873041247653a (diff) | |
download | pin-project-8915193b0de5f14b58aea0cd7bd72a6083529dc2.tar.gz |
Update pin-project to 1.0.10
Test: cd external/rust/crates && atest --host -c
Change-Id: I60f27e769ab8c287dbf4948e61bae172e6949cfc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/project_replace-expanded.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/project_replace-expanded.rs b/examples/project_replace-expanded.rs index ebb8e00..445e570 100644 --- a/examples/project_replace-expanded.rs +++ b/examples/project_replace-expanded.rs @@ -79,10 +79,8 @@ const _: () = { // Destructors will run in reverse order, so next create a guard to overwrite // `self` with the replacement value without calling destructors. - let __guard = ::pin_project::__private::UnsafeOverwriteGuard { - target: __self_ptr, - value: ::pin_project::__private::ManuallyDrop::new(__replacement), - }; + let __guard = + ::pin_project::__private::UnsafeOverwriteGuard::new(__self_ptr, __replacement); let Self { pinned, unpinned } = &mut *__self_ptr; @@ -98,7 +96,7 @@ const _: () = { // this must be in its own scope, or else `__result` will not be dropped // if any of the destructors panic. { - let __guard = ::pin_project::__private::UnsafeDropInPlaceGuard(pinned); + let __guard = ::pin_project::__private::UnsafeDropInPlaceGuard::new(pinned); } // Finally, return the result |