Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a8ae9b1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Change request for Rust v1.64.0"

parents 00a54e41 f351845c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -296,7 +296,7 @@ impl<T: Remotable> InterfaceClassMethods for Binder<T> {
    /// Must be called with a valid pointer to a `T` object. After this call,
    /// Must be called with a valid pointer to a `T` object. After this call,
    /// the pointer will be invalid and should not be dereferenced.
    /// the pointer will be invalid and should not be dereferenced.
    unsafe extern "C" fn on_destroy(object: *mut c_void) {
    unsafe extern "C" fn on_destroy(object: *mut c_void) {
        Box::from_raw(object as *mut T);
        drop(Box::from_raw(object as *mut T));
    }
    }


    /// Called whenever a new, local `AIBinder` object is needed of a specific
    /// Called whenever a new, local `AIBinder` object is needed of a specific