mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 12:58:23 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
7acb7ec404
commit
e61c27f6b4
2 changed files with 7 additions and 4 deletions
|
|
@ -655,12 +655,12 @@ impl WinitWindowAdapter {
|
|||
let maybe_muda_adapter = maybe_muda_adapter.borrow();
|
||||
let Some(muda_adapter) = maybe_muda_adapter.as_ref() else { return };
|
||||
let menu = match muda_type {
|
||||
MudaType::Menubar => &self.menubar,
|
||||
MudaType::Context => &self.context_menu,
|
||||
MudaType::Menubar => &self.menubar,
|
||||
MudaType::Context => &self.context_menu,
|
||||
};
|
||||
let menu = menu.borrow();
|
||||
let Some(menu) = menu.as_ref() else { return };
|
||||
muda_adapter.invoke(menu, entry_id);
|
||||
muda_adapter.invoke(menu, entry_id);
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
|
|
|||
|
|
@ -36,7 +36,10 @@ pub struct MenuVTable {
|
|||
}
|
||||
|
||||
unsafe impl vtable::VTableMetaDropInPlace for MenuVTable {
|
||||
unsafe fn drop_in_place(_: &<Self as vtable::VTableMeta>::VTable, _: *mut u8) -> vtable::Layout {
|
||||
unsafe fn drop_in_place(
|
||||
_: &<Self as vtable::VTableMeta>::VTable,
|
||||
_: *mut u8,
|
||||
) -> vtable::Layout {
|
||||
todo!()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue