@@ -77,17 +77,17 @@ impl IntoNativeHandlers<NativeElementContentHandlers<'static>> for ElementConten
77
77
let mut native = NativeElementContentHandlers :: default ( ) ;
78
78
79
79
if let Some ( handler) = self . element ( ) {
80
- let this = handlers . clone ( ) ;
80
+ let this = Rc :: clone ( & handlers ) ;
81
81
native = native. element ( make_handler ! ( handler, Element , this, stack_ptr) ) ;
82
82
}
83
83
84
84
if let Some ( handler) = self . comments ( ) {
85
- let this = handlers . clone ( ) ;
85
+ let this = Rc :: clone ( & handlers ) ;
86
86
native = native. comments ( make_handler ! ( handler, Comment , this, stack_ptr) ) ;
87
87
}
88
88
89
89
if let Some ( handler) = self . text ( ) {
90
- let this = handlers . clone ( ) ;
90
+ let this = Rc :: clone ( & handlers ) ;
91
91
native = native. text ( make_handler ! ( handler, TextChunk , this, stack_ptr) ) ;
92
92
}
93
93
@@ -118,22 +118,22 @@ impl IntoNativeHandlers<NativeDocumentContentHandlers<'static>> for DocumentCont
118
118
let mut native = NativeDocumentContentHandlers :: default ( ) ;
119
119
120
120
if let Some ( handler) = self . doctype ( ) {
121
- let this = handlers . clone ( ) ;
121
+ let this = Rc :: clone ( & handlers ) ;
122
122
native = native. doctype ( make_handler ! ( handler, Doctype , this, stack_ptr) ) ;
123
123
}
124
124
125
125
if let Some ( handler) = self . comments ( ) {
126
- let this = handlers . clone ( ) ;
126
+ let this = Rc :: clone ( & handlers ) ;
127
127
native = native. comments ( make_handler ! ( handler, Comment , this, stack_ptr) ) ;
128
128
}
129
129
130
130
if let Some ( handler) = self . text ( ) {
131
- let this = handlers . clone ( ) ;
131
+ let this = Rc :: clone ( & handlers ) ;
132
132
native = native. text ( make_handler ! ( handler, TextChunk , this, stack_ptr) ) ;
133
133
}
134
134
135
135
if let Some ( handler) = self . end ( ) {
136
- let this = handlers . clone ( ) ;
136
+ let this = Rc :: clone ( & handlers ) ;
137
137
native = native. end ( make_handler ! ( handler, DocumentEnd , this, stack_ptr) ) ;
138
138
}
139
139
0 commit comments