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

Commit 619882a2 authored by Ying Hsu's avatar Ying Hsu Committed by Gerrit Code Review
Browse files

Merge "Floss: Remove extra clone in cb_variant"

parents 33a69853 f7154e8a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -127,9 +127,7 @@ pub fn cb_variant(input: TokenStream) -> TokenStream {
        extern "C" fn #ident(#params) {
            #stmts

            unsafe {
                (get_dispatchers().lock().unwrap().get::<#dispatcher>().unwrap().clone().lock().unwrap().dispatch)(#rpath(#args));
            }
            (get_dispatchers().lock().unwrap().get::<#dispatcher>().unwrap().lock().unwrap().dispatch)(#rpath(#args));
        }
    };