Publish `AnyUserData::take`

This commit is contained in:
Alex Orlenko 2021-11-04 12:32:19 +00:00
parent 806f0bcef4
commit ad70ba54a5
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 0 additions and 1 deletions

View File

@ -819,7 +819,6 @@ impl<'lua> AnyUserData<'lua> {
/// Takes out the value of `UserData` and sets the special "destructed" metatable that prevents
/// any further operations with this userdata.
#[doc(hidden)]
pub fn take<T: 'static + UserData>(&self) -> Result<T> {
let lua = self.0.lua;
unsafe {