on_custom_attribs Box → Rc

This commit is contained in:
galister
2026-01-06 20:47:05 +09:00
parent e535c5fe94
commit 1257be6cc4
3 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ impl<S: 'static> GuiPanel<S> {
AssetPath::FileOrBuiltIn(path)
},
extra: wgui::parser::ParseDocumentExtra {
on_custom_attribs: Some(Box::new({
on_custom_attribs: Some(Rc::new({
let custom_elems = custom_elems.clone();
move |attribs| {
custom_elems.borrow_mut().push(attribs.to_owned());