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

@@ -1069,9 +1069,9 @@ impl CustomAttribsInfoOwned {
}
}
pub type OnCustomAttribsFunc = Box<dyn Fn(CustomAttribsInfo)>;
pub type OnCustomAttribsFunc = Rc<dyn Fn(CustomAttribsInfo)>;
#[derive(Default)]
#[derive(Default, Clone)]
pub struct ParseDocumentExtra {
pub on_custom_attribs: Option<OnCustomAttribsFunc>, // all attributes with '_' character prepended
pub dev_mode: bool,